thomthom / SKUI

Ruby wrapper of classes that maps to GUI controls in SketchUp's UI::WebDialogs
MIT License
26 stars 14 forks source link

Groupbox rectangle defined, but properties not defined? #93

Open jimfoltz opened 10 years ago

jimfoltz commented 10 years ago

Just wondering if this is a bug - in the following code, the Groupbox (g) has a rect, but its properties (top, left, bottom, right, width, height) are not defined?

w=SKUI::Window.new
g=SKUI::Groupbox.new "Group 1"
w.add_control(g)
w.show
# g has a rect...
g.rect.to_hash # => {:left=>0, :top=>0, :right=>55, :bottom=>24, :width=>55, :height=>24}
# but no properties?
g.top # =>nil
g.width # => nil
thomthom commented 10 years ago

hmm... I think this idiosyncrasy was due to allowing controls to be able to be left/right or top/bottom aligned. I would need to dig deeper into it.

Comments you say... oh why would we ever need that.... kicks former self