jQuery UI Widgets › Forums › Layouts › Splitter › Panels not shown when Cookies true in Chrome
Tagged: chrome, cookies, jqxsplitter, panels
This topic contains 6 replies, has 2 voices, and was last updated by sunbiz 12 years, 1 month ago.
-
Author
-
I’ve tried to create a page with Jqxsplitter and settings the cookies:true in the constructor. The splitter is shown correctly in Firefox, Opera, but in Chrome 22, the panes are not shown. A small line is displayed on the left of the screen.
If the cookies:true is removed, it works fine in Chrome as well, but I am unable to persist the location and size of the panels after the splitter has been dragged. This is an essential functionality for what we are building.Can you please suggest a workaround? or reason why this is happening? is it a known issue??
Hi sunbiz,
Can you provide sample code which reproduces the issue? Do you use jQWidgets 2.5 and jQuery 1.8.2?
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comFollowing is example code. Using jquery 1.8.2 and jQWidgets 2.5:
<!DOCTYPE html><html> <head> <title>Test page</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script> <script src="js/libs/jqxcore.js" type="text/javascript"></script> <script src="js/libs/jqxbuttons.js" type="text/javascript"></script> <script src="js/libs/jqxpanel.js" type="text/javascript"></script> <script src="js/libs/jqxscrollbar.js" type="text/javascript"></script> <script src="js/libs/jqxsplitter.js" type="text/javascript"></script> <link href="styles/jqx.base.css" rel="stylesheet" type="text/css" /> </head> <body> <script> $(document).ready(function() { $("#jqxSplitter").jqxSplitter({cookies: true, panels: [{size: '40%'}, {size: '60%'}]}); }); </script> <div id="jqxSplitter" style="width:100%; height: 100%"> <div> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> <p> Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. </p> <p> Fusce convallis, mauris imperdiet gravida bibendum, nisl turpis suscipit mauris, sed placerat ipsum urna sed risus. In convallis tellus a mauris. Curabitur non elit ut libero tristique sodales. Mauris a lacus. Donec mattis semper leo. In hac habitasse platea dictumst. Vivamus facilisis diam at odio. Mauris dictum, nisi eget consequat elementum, lacus ligula molestie metus, non feugiat orci magna ac sem. Donec turpis. Donec vitae metus. Morbi tristique neque eu mauris. Quisque gravida ipsum non sapien. Proin turpis lacus, scelerisque vitae, elementum at, lobortis ac, quam. Aliquam dictum eleifend risus. In hac habitasse platea dictumst. Etiam sit amet diam. Suspendisse odio. Suspendisse nunc. In semper bibendum libero. </p> <p> Proin nonummy, lacus eget pulvinar lacinia, pede felis dignissim leo, vitae tristique magna lacus sit amet eros. Nullam ornare. Praesent odio ligula, dapibus sed, tincidunt eget, dictum ac, nibh. Nam quis lacus. Nunc eleifend molestie velit. Morbi lobortis quam eu velit. Donec euismod vestibulum massa. Donec non lectus. Aliquam commodo lacus sit amet nulla. Cras dignissim elit et augue. Nullam non diam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In hac habitasse platea dictumst. Aenean vestibulum. Sed lobortis elit quis lectus. Nunc sed lacus at augue bibendum dapibus. </p> </div> <div> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> <p> Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. </p> <p> Fusce convallis, mauris imperdiet gravida bibendum, nisl turpis suscipit mauris, sed placerat ipsum urna sed risus. In convallis tellus a mauris. Curabitur non elit ut libero tristique sodales. Mauris a lacus. Donec mattis semper leo. In hac habitasse platea dictumst. Vivamus facilisis diam at odio. Mauris dictum, nisi eget consequat elementum, lacus ligula molestie metus, non feugiat orci magna ac sem. Donec turpis. Donec vitae metus. Morbi tristique neque eu mauris. Quisque gravida ipsum non sapien. Proin turpis lacus, scelerisque vitae, elementum at, lobortis ac, quam. Aliquam dictum eleifend risus. In hac habitasse platea dictumst. Etiam sit amet diam. Suspendisse odio. Suspendisse nunc. In semper bibendum libero. </p> <p> Proin nonummy, lacus eget pulvinar lacinia, pede felis dignissim leo, vitae tristique magna lacus sit amet eros. Nullam ornare. Praesent odio ligula, dapibus sed, tincidunt eget, dictum ac, nibh. Nam quis lacus. Nunc eleifend molestie velit. Morbi lobortis quam eu velit. Donec euismod vestibulum massa. Donec non lectus. Aliquam commodo lacus sit amet nulla. Cras dignissim elit et augue. Nullam non diam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In hac habitasse platea dictumst. Aenean vestibulum. Sed lobortis elit quis lectus. Nunc sed lacus at augue bibendum dapibus. </p> </div> </div> </body></html>
If the cookies:true is removed it shows fine in Chrome
Hi sunbiz,
In the initialization code, you missed to set the width and height properties of jqxSplitter. Setting the html and body’s width and height to 100% is missing, too.
The following is not supported:
<div id="jqxSplitter" style="width:100%; height: 100%">
To set the widget’s size, use its width and height properties in the initialization.
Regarding the cookies setting, we’ll try to reproduce the reported behavior.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comSetting those (initialization for jwxsplitter and html,body) to 100% doesn’t help.
Removed the cookies:true and it works in Chrome. Have you been able to reproduce the issue??Hi sunbiz,
The latest build from today which is available for download from our Downloads page resolves the reported behavior in the Chrome browser. Thank you again for the provided feedback!
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks, the 17-Oct-2012 release indeed fixed this issue. Quick fix!!
-
AuthorPosts
You must be logged in to reply to this topic.