Re: [Xsltforms-support] Dialog vertical position problems on the last revisions
Brought to you by:
alain-couthures
From: Ioan F. <mi...@gm...> - 2016-03-18 20:45:25
|
Hi Alain, back to this topic! I discovered a disturbing situation when is opened a second modal dialog over one already open. The problem arises only in the case of long lists in a page, with scroll vertically. The first dialog is positioned correctly over the center visible area of the page, but on show or hide the child modal dialog, the whole content "flees" on top, instead of staying on the position of the parent. In code, the problem seems to be in xsltforms.js, XsltForms_browser.dialog function, approximately at line 2600 in the last revision (631). What solution we could find? Thanks for any hint to how we could do. Ioan On 06/07/2014 07:34 AM, Alain Couthures wrote: > Hi Ioan, > > I have now changed to the old version in the latest build. It will > stay as this as long as I haven't yet found a good way to support > dialogs popup from an IFRAME... > > Thanks! > > --Alain > > Le 07/05/2014 14:50, Ioan Fericel a écrit : >> Hi Alain, >> >> I find a solution for this problem, but not sure that is generally >> valid. In xsltforms.js, at line 232 in latest revision (595): >>> myHeight = document.body ? document.body.clientHeight : >>> document.documentElement.clientHeight; >> I changed to the old version: >>> myHeight = document.documentElement.clientHeight; >> Now modal dialog is centered correctly in visible area, both in Firefox >> and Chrome. Is it possible to affect other parts or could be changed in >> the next version to work correctly also in this case? >> >> Merci et bonne journée, >> Ioan >> > |