Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Percentage values for 'top, left' properties in positioning

    Officially the values for the 'top, left' positioning properties must be pixel numbers; like so:

    Code:
     isc.Button.create({
         top:10,
    	 left:10,
         title:"Button1"
     });


    I was curious and have used percentage values for those properties; like so:

    Code:
     isc.Button.create({
         top:"10%",
    	 left:"10%",
         title:"Button1"
     });

    And to my pleasant surprise, the placement of the button seems to adhere to those percentage positioning values ...

    The question is: Are percentage values for the 'top, left' positioning properties officially supported or not ? Own experiences tell me that probably the documentation is not yet up-to-date ...

    #2
    This is a supported feature, yes. The docs will be updated.

    Comment

    Working...
    X