Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Flow Panel not Flowing horizontal first and vertical second. #6

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 7 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. create "getting started" code
2. Make appropriate changes to targetpanel so that it is a IndexedFlowPanel
3. Make targetPanel droppable
4. Change getting-started-label style:
.getting-started-label {
                border: 1px solid #99AACC;
                background-color: #AACCFF;
                padding: 0px;
                max-height: 20px;
                width: 100px;
              }

What is the expected output? What do you see instead?
Expected is that elements would flow left first then wrap down if needed
(Flow format)
Elements are Flowing vertically down out it's panel.

What version of the product are you using? On what operating system?
gwt-dragdrop-2007-04-17.jar
Running on Ubuntu

Please provide any additional information below.

May not be error with DND may be error/flaw with GWT widget.

Original issue reported on code.google.com by matt.and...@gmail.com on 18 Apr 2007 at 7:07

@GoogleCodeExporter
Copy link
Author

Fred Sauer was quick to point out that you need to add 'display:inline' to the 
style
of the objects(here Labels) for them to take on the left right behavior.  Which 
means
that it might not be considered a bug, although the display behavior I still 
think is
incorrect (as html goes anyway).

Original comment by matt.and...@gmail.com on 18 Apr 2007 at 7:28

@GoogleCodeExporter
Copy link
Author

the behavior of elements spilling beyond the border of it's intended panel 
makes drag
and drop unreliable.

Original comment by matt.and...@gmail.com on 18 Apr 2007 at 7:52

@GoogleCodeExporter
Copy link
Author

I believe that inline works for making things go write to left, but you lose the
"preveiw box" of the element when it's moused over area's of the list. (the gap 
that
is created to show you where the element will be moved to)

In an earlier comment I stated DND was unreliable, what I meant to say was that 
the
location(index) of the final position becomes unreliable with the use of 
"display:inline"

So I guess I'm back to requesting a fix for the solution with the help of 
changing
the style to 'display:inline'

Original comment by matt.and...@gmail.com on 18 Apr 2007 at 8:14

@GoogleCodeExporter
Copy link
Author

increasing the size of the object does help "min-height: NNpx; " but I think 
that
padding the cell would also help it. still behavour isn't correct, no "preview" 
spot,
and elements are "falling".  
this art shows what I mean:
<start art>

 [  1  ] [  2  ] [dragging object]

 [  3  ]

<end art>
Here 3 is "falling"

after releasing the mouse the objects snap back

<start art>

 [  1  ] [  2  ] [dragged object]  [  3  ]

<end art>

Original comment by matt.and...@gmail.com on 18 Apr 2007 at 8:24

@GoogleCodeExporter
Copy link
Author

Fixed in r192

Note: You will still need "display: inline" on the widgets in your flow panel

Original comment by fredsa on 19 Apr 2007 at 5:08

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

it gets better in r193 :)

Original comment by fredsa on 19 Apr 2007 at 10:57

@GoogleCodeExporter
Copy link
Author

Original comment by fredsa on 23 Aug 2007 at 3:38

  • Added labels: Milestone-gwt-dnd-1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant