Announcement

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

    behaviour change for Dynamic form

    I just wanted to confirm that this was a fix and is not a bug. If you load the example below using SC 8.3 06-09-2013, the header is displayed to the very right of the page. If you load it using SC8.3 08-18-2013 and newer, the header displays only to the very right of the first column.


    Code:
    isc.VLayout.create({ID:"vparent", width: "100%", members:[
    isc.DynamicForm.create({ID:"GridLayout",name:"GridLayout",styleName:"CwCADS",numCols:1,colWidths:["100"],titleOrientation:"top",margin:0,fields:
    [{title:"Right ",isFirstFocusable:false,align:"right",showSaveValue:false,ID:"Header",name:"Header",defaultValue:"Right",showValidation:"false",_constructor:"HeaderItem"}]})
    ]})

    #2
    There was an enhancement to allow right alignment to work for items that do not fill their column's width. However this particular piece of code is in a bit of a grey area because the form is being given the full width of the page yet is configured to have a single 100px column, so you are relying on the unspecified behaviors that occur when colWidths are invalid.

    If you were to make the column size "*" and set the header to be 100px wide you would be in supported territory.

    Comment


      #3
      by "being given the full width of the page" do you mean because there is no width property being set on the grid layout, it automatically takes the parent's width?

      Thanks for the response!

      Comment


        #4
        Yes, it takes the parent's width, but not because widgets in general take the parent's width, but because the parent is a Layout, and that's the default behavior of Layout when a child has no width setting (and always has been).

        Comment

        Working...
        X