Announcement

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

    Make the controlsLayout on section headers 100% available width

    Smartclient version: v10.1p_2016-02-02/Enterprise Deployment"
    Browser version: Chrome 18+

    I am trying to achieve something like in the attachment. I basically have a news ticker that scrolls inside the controls layout. I need the controls layout of the section header to fill the entire available space so that it bumps up against the section title on the left. I have gone the route of subclassing a SectionHeader, but in initWidget if I inspect this, there is not controlsLayout property. How can I customise the width of a controlsLayout? This width needs to be dynamic since the section stack might resize.

    Many thanks
    De Wet


    Attached Files

    #2
    Hello, have you tried something like this?
    Code:
    ....
    sections: [
            {
                name: "yourSection",
                controlsLayoutProperties: {width: "100%", hPolicy: "fill"},
                controls: [
    ....

    Comment


      #3

      This works. Awesome, thanks. Just out of interest, where in the docs did you see the controlsLayoutProperties?

      Comment


        #4
        Never mind, found it under *Using AutoChildren*

        Comment

        Working...
        X