Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groupbox rectangle defined, but properties not defined? #93

Open
jimfoltz opened this issue Mar 31, 2014 · 1 comment
Open

Groupbox rectangle defined, but properties not defined? #93

jimfoltz opened this issue Mar 31, 2014 · 1 comment
Labels

Comments

@jimfoltz
Copy link
Contributor

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
Copy link
Owner

thomthom commented Apr 1, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants