Revision: 4270 http://vexi.svn.sourceforge.net/vexi/?rev=4270&view=rev Author: clrg Date: 2011-10-06 03:11:50 +0000 (Thu, 06 Oct 2011) Log Message: ----------- Catch negative minwidth assignments
Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/column.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/column.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/column.t 2011-10-05 13:02:32 UTC (rev 4269) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/column.t 2011-10-06 03:11:50 UTC (rev 4270) @@ -38,7 +38,7 @@ static.sizeWrite = function(v) { cascade = v; trapee.minwidth = trapee.paddingleft + trapee.paddingright - + v * vexi.ui.font.width(trapee.font, trapee.fontsize, "0"); + + vexi.math.max(0, v * vexi.ui.font.width(trapee.font, trapee.fontsize, "0")); } static.valueRead = function() { return cascade ? cascade : trapee.text; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn