jQuery UI Widgets › Forums › Angular › Splitter 100% Width and Height
Tagged: Angular layout, Angular splitter
This topic contains 4 replies, has 3 voices, and was last updated by admin 5 years, 5 months ago.
-
Author
-
The Spitter Fluid demo example sets the Splitter’s height and width to
100%.<div id="DIV1" style="width: 100%; height: 100%;"> <jqxSplitter #jqxSplitter [height]="'100%'" [width]="'100%'" [panels]="panels"> ...... </jqxSplitter> </div>Since I want the Splitter to fill the entire web page: from top to bottom and from left to right, I am using the same settings as in this demo example:
[height]="'100%'" [width]="'100%'"Unfortunately, even if I copy/paste the code from this example the Splitter disappears and the page renders blank.
I have tried Fluid Size Splitter live example posted as StackBlitz project.Unfortunately,
[height]="'100%'" [width]="'100%'"setting do not work there as well.How to make Splitter widget fill the entire 100% screen space?

Hello unicorn,
Which browser are you testing the Stackblitz example in? I have tested it and the Splitter fills the entire screen.
I suppose that you need to set 100% width and height to the parents containers, i.e.html,body.Best Regards,
Martin YotovjQWidgets team
https://www.jqwidgets.comHello Martin,
Thanks for your question!
I have been using Opera. I’ve just tried the Chrome with Fluid size Spinner demo StackBlitz project. I have set the height to 100%, like so:<div id="DIV1" style="width: 100%; height: 100%;"> <jqxSplitter [theme]="'material'" #jqxSplitter [height]="'100%'" [width]="'100%'" [panels]="panels"> <div>Below is the screenshot of the Chrome browser:

Chrome sill renders the empty page. What browser and what StackBlitz project are you using?
To solve this problem set the parent
<div>withheight: 100vhinstead ofheight: 100%:<div id="DIV1" style="background-color: lightblue; width: 100%; height: 100vh "> <jqxSplitter #jqxSplitter [height]="'100%'" [width]="'100%'" [panels]="panels"> </jqxSplitter> </div>Hi unicorn,
Thanks for the update.
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.