Jump to content

Is this bug? ( TUniSplitter )


Freeman35

Recommended Posts

Hi,

same as ion web demo. http://prime.fmsoft.net/demo/desktop/mdemo65.dll

search "splitter"

Try right splitter (green's panel left) move left to near to left panel (purple color).

1. where is splitter ? :)

2. why green panel's width increase more ?

and continue test same form. on left splitter right on purple panel. Move it to right, after a few increase then why stop purple panel width increasing ????

This problem in my app too. There is no limit for width in splitter.

browser is firefox x64 ver:64.0.2

reagrds.

firefox-X64-ver64_0_2-splitter.gif

Link to comment
Share on other sites

50 minutes ago, Freeman35 said:

bana faydası yok... saol...

Hello,

At the moment you can try to use these configs: maxWidth (for left/right splitters) and maxHeight (for top/bottom splitters)

The values here are approximate, may need to think about the logic for this.

Try:

procedure TUniMiscellaneousSplitter.UniFrameCreate(Sender: TObject);
begin
  //left
  UniSplitter1.JSInterface.JSConfig('maxWidth', [400]);

  //top
  UniSplitter2.JSInterface.JSConfig('maxHeight', [400]);

  //bottom
  UniSplitter3.JSInterface.JSConfig('maxHeight', [400]);

  //right
  UniSplitter4.JSInterface.JSConfig('maxWidth', [400]);
end;

 

Link to comment
Share on other sites

Thank you Sherzod,

I direct test in my app. But not be a solution :( But I found my solution while testing :)  

In my first message, that panels Collapsed:= True; In designTime. And test it in runtime, onFormCreate Panles.Collapsed:= True;  On this way, splitter not work normal. So I moved this code to "UniFormReady" event of form, so my problem been fixed.

Thank you so much.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...