Categories | Question details Back To List | ||
dhtmlxWindow centering function Hello guys, It occurs that when creating a dhtmlXWindow (v.1.0 build 80512) in a viewport bigger than screen (i.e. a page with a vertical scrollbar), and using the function : center (_centerWindow), the window is centered based on the real size of the content and not the visible part. I'm currently using a workaround by manually setting viewport size, so this not a big deal. However, a optionnal mode (all|visible) parameter in the centering function could be very useful . (As, by the way, an auto-refresh on parent resize event). Thanks for you attention. N.Darques. Answer posted by Support on Oct 06, 2008 06:22 >>However, a optionnal mode (all|visible) parameter in the centering function could be very useful . It can be done without problems for situation when document.body used as viewport, but in case of some custom HTML tag as viewport, detection of visible part can be a really complicated ( multiple scrollable areas between zone and document.body are possible ). We will check how it can be added in one of next versions. |