Skip to content

Instantly share code, notes, and snippets.

@aikar
Created December 4, 2010 17:24
Show Gist options
  • Save aikar/728339 to your computer and use it in GitHub Desktop.
Save aikar/728339 to your computer and use it in GitHub Desktop.
Raphael.JS Question
any chance 2.0 will have the ability to have a viewport '100%' of its parent (ie full screen window), and then an option to 'align' to a side, so align bottom left x 10 y 10 would put the element right in the corner, and then when the window is resized have it automatically move with it and stay in bottom left corner?
firefox seems to better support percentages for position but it blows IE up on 1.5.2 in the setBox function where it does math on the width/height for like circle.
I'm looking to create a game UI with Raphael and would really like an align feature and 100% viewports
for % maybe store it but the actual X/Y is calculated any time the viewport is resized or position is moved?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment