I have a problem when trying to move sections programmatically by calling SectionStack.moveSection() once the sections were opened and closed by a user.
The Problem can be reproduced with the attached, slightly modified Showcase example "SectionsReorderSample" (it starts with all sections closed and has an additional button to trigger a programmatical moveSection()):
- Open "Green Pawn" section
- Drag opened "Green Pawn" section behind "Yellow Piece"
- Close "Green Pawn", open "Yellow Piece"
- Click "Shuffle" once: the Yellow Piece, header and section, get both correctly moved behind the "Green Pawn" section
- Click "Shuffle" once more: only the "Yellow Piece" header gets shifted up, the "Yellow Piece" section stays were it is and seems to be associated with the Green Pawn header.
I'm assuming that moveSection() is not restricted to closed sections, at least the javadoc of SectionStack doesn't mention anything about it.
Greetings,
Klaus
1. the SmartGWT or SmartClient version and browser version(s) involved;
SmartGWT nightly build 2011-06-23, FF 4.0, Win 7
3. for a client-side problem, the contents of the Developer Console (see FAQ for usage);
Attached the developer console's output, I logged the layout and dragdrop categories as info, but I didn't see anything thrilling.
4. No Javascript error logged.
5. sample code.
See attachment.
The Problem can be reproduced with the attached, slightly modified Showcase example "SectionsReorderSample" (it starts with all sections closed and has an additional button to trigger a programmatical moveSection()):
- Open "Green Pawn" section
- Drag opened "Green Pawn" section behind "Yellow Piece"
- Close "Green Pawn", open "Yellow Piece"
- Click "Shuffle" once: the Yellow Piece, header and section, get both correctly moved behind the "Green Pawn" section
- Click "Shuffle" once more: only the "Yellow Piece" header gets shifted up, the "Yellow Piece" section stays were it is and seems to be associated with the Green Pawn header.
I'm assuming that moveSection() is not restricted to closed sections, at least the javadoc of SectionStack doesn't mention anything about it.
Greetings,
Klaus
1. the SmartGWT or SmartClient version and browser version(s) involved;
SmartGWT nightly build 2011-06-23, FF 4.0, Win 7
3. for a client-side problem, the contents of the Developer Console (see FAQ for usage);
Attached the developer console's output, I logged the layout and dragdrop categories as info, but I didn't see anything thrilling.
4. No Javascript error logged.
5. sample code.
See attachment.