[ 
https://issues.apache.org/jira/browse/TOBAGO-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483127
 ] 

Tobias Glensk commented on TOBAGO-330:
--------------------------------------

A Workaround is to use a managed bean for the layout which is extending 
PageStateImpl. If the actual width and height of the view is lower than the 
minimum width and height, the values for the minimum width and height are 
returned.

import org.apache.myfaces.tobago.model.PageStateImpl;

public class Layout extends PageStateImpl {

        private static final int MIN_WIDTH = 640;
        private static final int MIN_HEIGHT = 480;

        private int width;
        private int height;

        public int getWidth() {
                int result = getClientWidth();
                if (result == 0) {
                        result = width;
                }
                result = Math.max(result, MIN_WIDTH);
                return result;
        }

        public void setWidth(int width) {
                this.width = width;
        }

        public int getHeight() {
                int result = getClientHeight();
                if (result == 0) {
                        result = height;
                }
                result = Math.max(result, MIN_HEIGHT);
                return result;
        }

        public void setHeight(int height) {
                this.height = height;
        }

}

> Application hangs / crashes when browser window is resized to a small window 
> and an action is exectued
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-330
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-330
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: Apache Tomcat 5.5.20
> IBM Websphere
> Firefox 2
> IE 6
>            Reporter: Tobias Glensk
>         Attachments: debug.txt, threaddump.txt, threaddump2.txt
>
>
> Inside a browser I have a view with many components on it. I am resizing the 
> browser window so that the components are packed tightly together. After that 
> I execute an action which is calling a method in the controller. The view 
> shows the progress image and the application doesn't return to the normal 
> view even after the method call in the controller is completed. The browser 
> doesn't respond after it. If you close the browser the application (java 
> process) is still running on a high load and doesn't finishes (loop).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to