Opened 16 years ago

Closed 15 years ago

#423 closed defect (wontfix)

dnd float attribute should get wiped in FloatingPane

Reported by: [email protected] Owned by: bill
Priority: high Milestone: 1.0
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


Especially bad in ie, but the float right messes up on the float:right attribute. The FloatPane? goes to the far right, the 'I am going here' line is wrong, and the chunk doesn't drop in the proper place.

Replacing /path/to/dojo in the below file, should duplicate the problem

<script type="text/javascript" src="/path/to/dojo/dojo.js"></script>
<script type="text/javascript">

    function byId(id){ return document.getElementById(id); }
    function init(){
        for(var i=0;i<3;i++) {
            var dl = byId("dragList"+i);
            new dojo.dnd.HtmlDropTarget(dl, ["div"]);
            var lis = dl.getElementsByTagName("div");
            for(var x=0; x<lis.length; x++){
                if(!lis[x].id) continue;
                new dojo.dnd.HtmlDragSource(lis[x], null, lis[x].firstChild);
    dojo.event.connect(dojo, "loaded", "init");
<table width=100%>
<tr valign=top>
        <div id="dragList0" width=50%>
            <div id=joe>
                <div style='float:right'>right 0</div>
                <div>left 0</div>
        <div id="dragList1" width=50%>
            <div id=joe>
                <div style='float:right'>right 1</div>
                <div>left 1</div>

Change History (2)

comment:1 Changed 16 years ago by dylan

Component: GeneralWidgets
Milestone: 0.6
Owner: changed from anonymous to bill

comment:2 Changed 15 years ago by bill

Resolution: wontfix
Status: newclosed

FloatingPane? itself not supported in Dijit, and also, if a FloatingPane? is set to float: right then it can't really be dragged.

Note: See TracTickets for help on using tickets.