Changeset 28888
- Timestamp:
- 01/23/09 12:25:36 (4 years ago)
- Location:
- lang/ruby/ruwin
- Files:
-
- 2 modified
-
lib/ruwin/control.rb (modified) (1 diff)
-
test/ruwin/test_control.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ruwin/lib/ruwin/control.rb
r28884 r28888 20 20 def parent_resized parent_width, parent_height 21 21 return unless self.right || self.bottom 22 width = self.right ? (parent_width - self.right) : w 23 height = self.bottom ? (parent_height - self.bottom) : h 24 move x, y, width, height 22 size = clientrect 23 size[2] = parent_width - self.right if self.right 24 size[3] = parent_height - self.bottom if self.bottom 25 26 move *size 25 27 end 26 28 end -
lang/ruby/ruwin/test/ruwin/test_control.rb
r28884 r28888 16 16 def test_new 17 17 klass = Class.new(Ruwin::Control) 18 window = Ruwin::Component.new18 window = HiddenWindow.new 19 19 instance = klass.new(window) 20 20 assert_equal 0, instance.style&WS_CLIPSIBLINGS
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)