jQWidgets Forums
Forum Replies Created
-
Author
-
July 16, 2014 at 4:51 pm in reply to: Positioning window in the center of viewport.. Positioning window in the center of viewport.. #57309
Here is the solution if anyone needs it:
function showProgressBar() { //GET WINDOW HEIGHT AND WIDTH var winHeight = $(window).height(); var winWidth = $(window).width(); //KEEP CENTERED var posX = (winWidth/2) - ($('#progressBarWindow').width()/2) + $(window).scrollLeft(); var posY = (winHeight/2) - ($('#progressBarWindow').height()/2) + $(window).scrollTop(); $('#progressBarWindow').jqxWindow({position: {x: posX, y: posY}}); //KEEP CENTERED WHEN SCROLLING $(window).scroll(function() { winHeight = $(window).height(); winWidth = $(window).width(); posX = (winWidth/2) - ($('#progressBarWindow').width()/2) + $(window).scrollLeft(); posY = (winHeight/2) - ($('#progressBarWindow').height()/2) + $(window).scrollTop(); $('#progressBarWindow').jqxWindow({position: {x: posX, y: posY}}); }); //KEEP CENTERED EVEN WHEN RESIZING $(window).resize(function() { winHeight = $(window).height(); winWidth = $(window).width(); posX = (winWidth/2) - ($('#progressBarWindow').width()/2) + $(window).scrollLeft(); posY = (winHeight/2) - ($('#progressBarWindow').height()/2) + $(window).scrollTop(); $('#progressBarWindow').jqxWindow({position: {x: posX, y: posY}}); }); //UPDATE PROGRESSBAR progressBarInterval = setInterval(function() { var val = $('#progressBar').jqxProgressBar('val'); $('#progressBar').jqxProgressBar('actualValue',val+10); },100) //OPEN WINDOW $('#progressBarWindow').jqxWindow('open'); }
After this you should have a close window function, and get rid of the event handlers and timer interval (store handle in global variable).
July 16, 2014 at 4:44 pm in reply to: Positioning window in the center of viewport.. Positioning window in the center of viewport.. #57307Hello everyone, just wanted to mention that I found the solution to my problem. Thanks anyways.
July 3, 2014 at 1:54 pm in reply to: Pages, headers & footers, columns, pdf, etc… Pages, headers & footers, columns, pdf, etc… #56740Is there an example of using letter sized pages with the editor? Or would you reccomend not doing this inside of the content area of the editor, but instead use the inline editor on content sections of the page, which are controlled by a third party app that I would write?
Ok, thanks for the clarification. Are they a planned feature?
Well, I just wanted to add that I just found the vertical menu example, but is there a vertical tab example or functionality?
Thanks, this fixed it for me.
Have a nice day.
-
AuthorPosts