PDA

View Full Version : DHTML Window widget - minimized window position



Rodekode
11-15-2008, 07:00 PM
1) Script Title: DHTML Window widget (v1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:


Hello DDforum,

Is it possible to have a minimized window floated top-right corner instead of the default position bottom-left, and if more minimized windows has been created then have them floating next to each other (from top-right towards left) instead of the default stacking.

Best regards Thomas

ddadmin
11-16-2008, 06:57 AM
Sure. Try finding the below two lines (separately) in dhtmlwindow.js:


t.style.left="10px" //left coord of minmized window
t.style.top=dhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.offsetHeight*t.minimizeorder)-windowspacing+"px"

to:


t.style.top="20px"
t.style.left=dhtmlwindow.scroll_left+dhtmlwindow.docwidth-(t.handle.offsetWidth*t.minimizeorder)-windowspacing+"px"

Rodekode
11-16-2008, 10:29 AM
Thanks a lot
It works like a charm now - DD rocks!