Revision: 4289 http://vexi.svn.sourceforge.net/vexi/?rev=4289&view=rev Author: clrg Date: 2011-10-22 01:54:18 +0000 (Sat, 22 Oct 2011) Log Message: ----------- Layout fix for enabled=false->enabled=true spin widgets
Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/spin.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/spin.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/spin.t 2011-10-22 01:53:17 UTC (rev 4288) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/spin.t 2011-10-22 01:54:18 UTC (rev 4289) @@ -8,11 +8,11 @@ <lib:spin /> <ui:box redirect=":$content" margin="3" padding="3" vshrink="true"> - <bevel id="bevel" form="down"> - <ui:box id="inset" fill="white" layout="place"> - <ui:box id="content" align="right" shrink="true" /> + <bevel id="bevel" fill="white" form="down"> + <ui:box id="inset" layout="place"> + <ui:box id="content" /> </ui:box> - <ui:box orient="vertical" width="15"> + <ui:box id="buttons" orient="vertical" width="15"> <button id="more" minheight="9" repeats="true" shrink="false"> <ui:box fill=":.image.arrowup_small" shrink="true" /> </button> @@ -23,11 +23,13 @@ </bevel> thisbox.th_bevel = $bevel; + thisbox.th_buttons = $buttons; thisbox.th_viewport = $inset; thisbox.th_view = $content; thisbox.th_more = $more; thisbox.th_less = $less; - thisbox.v_fillbox = $inset; + thisbox.v_fillbox = $bevel; + thisbox.v_init = static.init; thisbox.v_prevfill = .settings..fill; thisbox.enabled ++= static.enableWrite; @@ -37,10 +39,11 @@ </ui:box> <lib.finalize /> + static.init = { textalign:"right" }; + static.enableWrite = function(v) { cascade = v; - trapee.th_less.maxwidth = v ? vexi.ui.maxdim : 0; - trapee.th_more.maxwidth = v ? vexi.ui.maxdim : 0; + trapee.th_buttons.maxwidth = v ? 15 : 0; } var setMinwidth = function(t) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn