{"action":"opened","issue":{"url":"https://api.github.com/repos/cloudkite/Classy/issues/99","labels_url":"https://api.github.com/repos/cloudkite/Classy/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/cloudkite/Classy/issues/99/comments","events_url":"https://api.github.com/repos/cloudkite/Classy/issues/99/events","html_url":"https://github.com/cloudkite/Classy/issues/99","id":97855428,"number":99,"title":"relative dimensions","user":{"login":"atsepkov","id":2549997,"avatar_url":"https://avatars.githubusercontent.com/u/2549997?v=3","gravatar_id":"","url":"https://api.github.com/users/atsepkov","html_url":"https://github.com/atsepkov","followers_url":"https://api.github.com/users/atsepkov/followers","following_url":"https://api.github.com/users/atsepkov/following{/other_user}","gists_url":"https://api.github.com/users/atsepkov/gists{/gist_id}","starred_url":"https://api.github.com/users/atsepkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsepkov/subscriptions","organizations_url":"https://api.github.com/users/atsepkov/orgs","repos_url":"https://api.github.com/users/atsepkov/repos","events_url":"https://api.github.com/users/atsepkov/events{/privacy}","received_events_url":"https://api.github.com/users/atsepkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T04:11:58Z","updated_at":"2015-07-29T04:11:58Z","closed_at":null,"body":"Coming from css/js world, I keep wishing that we'd have a bit more power in defining dimensions via Classy. I was able to define absolute dimensions via `bounds` property, which is great. But it doesn't look like relative dimensions are supported. Absolute dimensions, as shown below, are great when I want to restrict the view to exact size:\r\n\r\n    UITextField {\r\n        /* absolute: */\r\n        bounds: 10, 10, 80, 30\r\n    }\r\n\r\nMore often than not, however, I want to define dimensions relative to the parent container, or passed-in frame:\r\n\r\n    UITextField2 {\r\n        /* relative */\r\n        bounds: @{\r\n            width: 80%;\r\n        }\r\n    }\r\n\r\nCurrently, I'm very happy with being able to style my views almost completely through `cas` file, but having to hardcode all the logic for computing child frame, and margins/padding prevents me from relying exclusively on Classy for styling."}}