:: Forum >>

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)
Monday, July 18, 2005
*bump*
Monday, July 25, 2005
the problem is present in 1.0.6 as well
Monday, July 25, 2005
So far I can only confirm the problem. I will post the fix as soon as I have it :-(
Alex (ActiveWidgets)
Monday, July 25, 2005
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)
Tuesday, July 26, 2005
Well that is a bit of a pain.
Tuesday, July 26, 2005
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)
Wednesday, August 3, 2005
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
Wednesday, August 3, 2005
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
Wednesday, August 3, 2005
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)
Wednesday, August 3, 2005
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
Wednesday, August 3, 2005
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.
Thursday, August 4, 2005
Just an idea why not patch the home page of the site ;)
Thursday, August 4, 2005
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?
Thursday, August 4, 2005
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
Thursday, August 4, 2005
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

Thursday, August 4, 2005
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
Friday, August 5, 2005
any help? anybody Pls ?
Kumar S
Friday, August 26, 2005
not sure if you can but XML stylesheets isn't my thing so I might be wrong
Friday, August 26, 2005
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"/>
Friday, August 26, 2005
Code to Print a PHP form of size 8.5*11
Ben
Monday, August 29, 2005
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
Sunday, September 17, 2006

This topic is archived.


Back to support forum

Forum search