3.2.0

Firefox 1.0.5 resizing problem

Columns no longer resize properly only just installed the new version of firefox

This happens on the home page and examples (havn't tried 1.0.6 yet)
July 18,
*bump*
July 25,
the problem is present in 1.0.6 as well
July 25,
So far I can only confirm the problem. I will post the fix as soon as I have it :-(
Alex (ActiveWidgets)
July 25,
The problem is related to the regression in Mozilla code:

https://bugzilla.mozilla.org/show_bug.cgi?id=298423

which they believe is correct behavior according to the W3C specs. Which means it will not be fixed and I have to find another way of doing the same thing.
Alex (ActiveWidgets)
July 26,
Well that is a bit of a pain.
July 26,
Here is the bug fix:

http://www.activewidgets.com/grid.howto.fix/column-resize-bug-firefox-1-0-5.html

if (window.HTMLElement) {

    var element = HTMLElement.prototype;

    var capture = ["click",	"mousedown", "mouseup",	"mousemove", "mouseover", "mouseout" ];

    element.setCapture = function(){
        var self = this;
        var flag = false;
        this._capture = function(e){
            if (flag) {return}
            flag = true;
            var event = document.createEvent("MouseEvents");
            event.initMouseEvent(e.type,
                e.bubbles, e.cancelable, e.view, e.detail,
                e.screenX, e.screenY, e.clientX, e.clientY,
                e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,
                e.button, e.relatedTarget);
            self.dispatchEvent(event);
            flag = false;
        };
        for (var i=0; i<capture.length; i++) {
            window.addEventListener(capture[i], this._capture, true);
        }
    };

    element.releaseCapture = function(){
        for (var i=0; i<capture.length; i++) {
            window.removeEventListener(capture[i], this._capture, true);
        }
        this._capture = null;
    };

}
Alex (ActiveWidgets)
August 3,
Hi,
I'm also experiencing the same problem with column resizing in the firefox.
Can you please where to put this code snippet.
I'm using grid inside an xsl file.

My firefox version is 1.0.6.
Kumar S
August 3,
Anybody can pls tell me where to add this code snippet. I tried to add into the page itself . but no use.

Thanks in advance.
Kumar S
August 3,
You should add this code to the page itself or put it into the external .js file and load it after grid.js
Alex (ActiveWidgets)
August 3,
I created a file named gridpatches.js and pasted the code from alex into it. The file is then referenced by a <script> tag after the grid:

<script src="/admin/grid/runtime/lib/grid.js" type="text/javascript" language="JavaScript"></script>
    <script src="/admin/js/gridpatches.js" type="text/javascript" language="JavaScript"></script>


The patch works fine. Thank you Alex!
Dietrich
August 3,
Works for me as well thanks for the quick fix alex :)

can you cancel the resize sometimes I get it where the column is resizing and they trigger a sort so I want to cancel the resize when I start my sort routine.
August 4,
Just an idea why not patch the home page of the site ;)
August 4,
Just realised what is happening with the resize prob if you release your mouse outside of a iframe the event isn't captured so the grid carries on resizing the column so maybe I need to capture the mouseup in the parent window and cancel a resize on grid maybe?
August 4,
Thanks it worked for me. But i can resize a column only one time. once i reduce a column size i cannot resize it to make it bigger( cannot increase the size of the column).

if i increase the column size i cannot reduce it again. Any help please ?
Kumar S
August 4,
That is exactly what happens with the bug you mustn't have applied the patch properly do as Dietrich mentions above and it will work fine

August 4,
actually i put the code as Dietrich have applied the patch. But it still the same.

I'm using inside the xsl file. will it be any problem? I'm using these tow line in the top of my xsl page.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

is there any problem with the lines?

to include the js files
<script src="/x_cscripts/runtime/lib/grid.js" type="text/javascript"/>
<script src="/x_cscripts/gridpatches.js" type="text/javascript"></script>

i use the like this.

please anybody help me
Kumar S
August 5,
any help? anybody Pls ?
Kumar S
August 26,
not sure if you can but XML stylesheets isn't my thing so I might be wrong
August 26,
oh hang on a min just noticed you are including the grid so I presume that works so maybe try

<script src="/x_cscripts/runtime/lib/grid.js" type="text/javascript"/>
<script src="/x_cscripts/gridpatches.js" type="text/javascript"/>
August 26,
Code to Print a PHP form of size 8.5*11
Ben
August 29,
having troubles and feelin like an idiot i need a step by step walk through on how to put a layout on my melo please help
buddah
September 17,

This topic is archived.

See also:


Back to support forum