maqetta/maqetta — Issue #1077: Absolute layout and View widgets
Author: JonFerraiolo
Created: 2011-10-12 19:42:06+00:00
State: open
Labels: Mobile, Priority Low, Visual Editor, Widget Libraries

@jhpedemonte, @peller

Assigned to Jon to think this one through.

If you go into absolute layout and add a mobile View widget, the debugger shows that the widget gets element.style='height: 100%; position: absolute; left: 40px; top: 33px; visibility: visible; display: block;' (assuming the drop point was (40,33)), which is probably not a result that is particularly helpful to a user.

Some possibilities here:

1. Tell users "don't do that!" (same answer doctor gives when patient says it's hurts when I do this)
2. We make sure View widgets have appropriate helper logic that stuff in more reasonable element.style values, perhaps forcing all View widgets to have flow layout even if Maqetta is in absolute layout mode
3. Disallow the operation and post an error dialog telling user they need to be in flow layout mode

Of course, this question applies to multiple scenarios, not just View widgets.