Преглед изворни кода

ToolButtons now default to PushButtomMode=True.

Mark Sibly пре 9 година
родитељ
комит
f81e4a11a5
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      modules/mojox/toolbar.monkey2

+ 4 - 1
modules/mojox/toolbar.monkey2

@@ -9,6 +9,8 @@ Class ToolButton Extends Button
 		Super.New( action )
 		
 		Style=GetStyle( "ToolButton" )
+		
+		PushButtonMode=True
 	End
 	
 End
@@ -26,7 +28,8 @@ Class ToolBar Extends DockingView
 	Method New( axis:Axis )
 		Style=GetStyle( "ToolBar" )
 		
-		Layout=axis=Axis.X ? "fill-x" Else "fill-y"
+		Layout=(axis=Axis.X ? "fill-x" Else "fill-y")
+
 		Gravity=New Vec2f( 0,0 )
 		
 		_axis=axis