jQuery UI Widgets › Forums › Layouts › Layout and Docking Layout › Auto Fit Layout
Tagged: Auto Height, auto width, fluid size, height, jqxLayout, layout, percentage, width
This topic contains 2 replies, has 2 voices, and was last updated by Dimitar 8 years, 10 months ago.
-
AuthorAuto Fit Layout Posts
-
hello,
Thereis option to set layout, left item width fixed like 300PX and right items auto fill available space?
TIA
Hello
why properties items like width won’t receive variable as input, this my sample error,
<script type="text/javascript"> var rightPanel=0; var width=0; $(document).ready(function () { // the 'layout' JSON array defines the internal structure of the layout width=$(window).width(); rightPanel=width-300; alert(rightPanel); var layout = [{ type: 'layoutGroup', orientation: 'horizontal', items: [{ type: 'layoutGroup', orientation: 'vertical', width: 300, items: [{ type: 'documentGroup', height: '50%', minHeight: '25%', items: [{ type: 'documentPanel', title: 'Document 1', contentContainer: 'Document1Panel' }, { type: 'documentPanel', title: 'Document 2', contentContainer: 'Document2Panel' }] }, { type: 'tabbedGroup', height: '50%', pinnedHeight: '10%', items: [{ type: 'layoutPanel', title: 'Error List', contentContainer: 'ErrorListPanel' }, { type: 'layoutPanel', title: 'Output', contentContainer: 'OutputPanel', selected: true }] }] }, { type: 'tabbedGroup', width: rightPanel, items: [{ type: 'layoutPanel', title: 'Solution Explorer', contentContainer: 'SolutionExplorerPanel' }, { type: 'layoutPanel', title: 'Properties', contentContainer: 'PropertiesPanel' }] }] }]; $('#jqxLayout').jqxLayout({ width: '100%', height: '100%', layout: layout }); }); </script>
TIA
Hello joko.pitoyo,
Unfortunately, the feature you require is not supported by jqxLayout. If you set the widget’s width and height to percentage values, the widths and heights of the inner panel groups also have to be set in percentages.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.