Yikes, what a bug.

I found this (old) page which includes some apparently relevant JavaScript
to try out:

    http://ajaxian.com/archives/forcing-a-ui-redraw-from-javascript

Basically it just modifies the DOM a bit, in the hopes of getting the
browser to re-think the layout.  I'm not sure if that script will be any
good in this situation.  But once you do have a workaround in JS, you can
invoke it from your form with an action like this:

    <xf:action ev:observer='my-model' ev:event='xforms-ready'>
        <xf:load resource='javascript:redraw();'/>
    </xf:action>

Best of luck.

-Adam McKee

On Fri, Jul 26, 2013 at 3:37 PM, C. M. Sperberg-McQueen <
[email protected]> wrote:

> Many of us who use XSLTForms will, I suspect, have encountered a rendering
> bug in Firefox (at least on Mac OS X, and apparently sometimes also on
> other platforms) that causes the page to be laid out as if the window were
> about half again as wide, and somewhat taller, than it is in fact.
>  Resizing
> the window causes the document to be re-rendered, and then everything
> is fine.
>
> Some further description is available, for the curious, at
>
>   https://bugzilla.mozilla.org/show_bug.cgi?id=640390
>
> I'm encountering this with a form I'm working on which needs to be usable
> by as broad a spectrum of users as possible -- including users of Firefox
> under OS X -- and it occurs to me that someone on this list may have faced
> the same challenge in the past and found a way to cause Firefox to render
> the form correctly without user interaction.
>
> Does anyone have any suggestions?
>
> I wonder (for example) whether listening for the xforms-ready event and
> then firing an action of some sort might succeed in causing Firefox to
> redraw
> the screen automatically.   I'll do some experimentation over the next
> week or so, but if anyone already knows a way to handle this, I'd be
> grateful for a pointer or two.
>
> Michael Sperberg-McQueen
>
> --
> ****************************************************************
> * C. M. Sperberg-McQueen, Black Mesa Technologies LLC
> * http://www.blackmesatech.com
> * http://cmsmcq.com/mib
> * http://balisage.net
> ****************************************************************
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Xsltforms-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to