Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
min,max properties not updated when the window is resized
posted

Hi.


I'm creating a vertical splitter setting the min and max properties of the left panel to limit the splitter resizable values, but when the window is resized, this values are not updated.

More specifically, min is a fixed value (around 400px) and works ok because never needs to change. But the max limit is 75%.

The problem is. i.e. when the page is loaded in a small window (let's say 600px) and the splitter is created (having a max of 600*0.75 = 450).

Then, the window is resized to 1920 but the max value stays at 450, when it should be updated to 1440px.

I thought it was automatically updated, but it isn't. Ok. the problem comes when I try to update it manually in a $(window).resize event, but there's no option to update this values.


Any idea?

Parents
  • 71886
    Offline posted

    Hello Daniel,

    The limits applied to the panel have the purpose of limiting the areas of sizing the splitter. They do not have anything to do with the size of the window I believe.

    Can you let me know of your final goal if these options do not satisfy your needs so I can try to come up with a different solution as I am not sure that I am getting what you are after?

Reply Children