{"comment":{"created_at":"2011-10-17T03:32:10Z","body":"First, I made some changes to the [use cases comment](https://github.com/maqetta/maqetta/issues/856#issuecomment-2205913).\r\n\r\nSecond, it looks like the best way to fix the remaining cases is to **refresh the VE from source** whenever the `fixed` property is set.\r\n\r\nAfter trying some things along those lines, I think I've found the perfect solution:  add support for a **metadata property** which would say that if a given **property is changed**, then **refresh from source**.  This would circumvent the normal process for property changes.\r\n\r\nMy proposal:\r\n\r\n1. Add support for the `refreshSource` metadata property, which is a *boolean* with default value of `false`.\r\n2. Since this is a Maqetta specific property, we can't add it to the widget's OAM file.  Instead, we support it in the widget descriptor in the **widgets.json** file, but adding a top level `property` prop [1], which acts as a mixin for the `property` prop in the OAM file.  For example:\r\n\r\n    ```javascript\r\n    {\r\n        \"name\": \"Heading\",\r\n        ...\r\n        \"property\": {\r\n            \"fixed\": {\r\n                \"refreshSource\": true\r\n            }\r\n        }\r\n        ...\r\n    },\r\n    ```\r\n3. When a property with `refreshSource` set to true is changed, we refresh the VE from source, similar to how it is currently done when editing in the source editor.\r\n\r\n<br>\r\n\r\n[1] Unfortunately, this means that we could both `property` and `properties` in the widget descriptor.  Maybe rename `properties` to something else?","updated_at":"2011-10-17T03:32:10Z","url":"https://api.github.com/repos/maqetta/maqetta/issues/comments/2424711","id":2424711,"user":{"gravatar_id":"7aea57b6d1c49e9daf17743533d06e76","avatar_url":"https://secure.gravatar.com/avatar/7aea57b6d1c49e9daf17743533d06e76?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jhpedemonte","id":711365,"login":"jhpedemonte"}},"action":"created","issue":{"number":856,"created_at":"2011-08-25T18:48:41Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"**Heading** and **TabBar** OAM files don't specify the `fixed` property, which is used when those widgets are placed within a **ScrollableView**.\r\n\r\nAlso, the existing docs aren't that great at pointing out this property.  For example, in the [Heading docs](http://docs.dojocampus.org/dojox/mobile/Heading), `fixed` is mentioned in the opening paragraph, but not in the **Constructor Params** section.  In the [TabBar docs](http://docs.dojocampus.org/dojox/mobile/TabBar), `fixed` is only mentioned once, in an example.\r\n\r\nNot sure if any other widgets can also use `fixed`...\r\n\r\n@JonFerraiolo @peller\r\n\r\n---\r\n\r\nSee my comment from [Sept 26](https://github.com/maqetta/maqetta/issues/856#issuecomment-2205913) for use case scenarios.","comments":17,"title":"No \"fixed\" parameter for Heading, TabBar","updated_at":"2011-10-17T03:32:10Z","url":"https://api.github.com/repos/maqetta/maqetta/issues/856","id":1485009,"assignee":{"gravatar_id":"7d36042b898a8cb379cab49328f3f231","avatar_url":"https://secure.gravatar.com/avatar/7d36042b898a8cb379cab49328f3f231?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/JonFerraiolo","id":706721,"login":"JonFerraiolo"},"milestone":{"number":10,"created_at":"2011-04-29T19:02:19Z","due_on":"2011-11-18T08:00:00Z","title":"M4","creator":{"gravatar_id":"7aea57b6d1c49e9daf17743533d06e76","avatar_url":"https://secure.gravatar.com/avatar/7aea57b6d1c49e9daf17743533d06e76?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jhpedemonte","id":711365,"login":"jhpedemonte"},"url":"https://api.github.com/repos/maqetta/maqetta/milestones/10","open_issues":178,"closed_issues":30,"description":"","state":"open"},"closed_at":null,"user":{"gravatar_id":"7aea57b6d1c49e9daf17743533d06e76","avatar_url":"https://secure.gravatar.com/avatar/7aea57b6d1c49e9daf17743533d06e76?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jhpedemonte","id":711365,"login":"jhpedemonte"},"html_url":"https://github.com/maqetta/maqetta/issues/856","labels":[{"name":"Bug","url":"https://api.github.com/repos/maqetta/maqetta/labels/Bug","color":"e10c02"},{"name":"Mobile","url":"https://api.github.com/repos/maqetta/maqetta/labels/Mobile","color":"444444"},{"name":"Priority Med","url":"https://api.github.com/repos/maqetta/maqetta/labels/Priority+Med","color":"FF99EB"},{"name":"Widget Libraries","url":"https://api.github.com/repos/maqetta/maqetta/labels/Widget+Libraries","color":"444444"}],"state":"open"},"legacy":{"issue_id":1485009,"comment_id":2424711}}