Hello Guyz,
I attached sample application on the issue that I am currently facing, I will explain it through the following example:
There are 2 scenarios for the bug:
1)Try to move(drag reposition) the label to the most right you will notice that a white space appear (this space is for a body space).
2)Click on the button and drag(drag reposition) the opened window to the most right as the white space will appear (this space is for a body space).
I can solve this issue by setting the overflow of the body to hidden, but at the same time I need to set a minimum width of the body, also I thought by changing the style to scroll of the body when it reaches the minimum width, but at the same time.
Also I found another solution by using keepInParent(Rectangle Rect), but I am developing a large application, I think it is not right to make every developers in the project to force them to use this method in the dragged object?
Does any one know how to solve this issue?
Any help is appreciated :)
Note: this bug appears on IE, Chrome and FF
I attached sample application on the issue that I am currently facing, I will explain it through the following example:
Code:
public void onModuleLoad() { VLayout vLayout = new VLayout(); vLayout.setSize("100%", "100%"); vLayout.setBackgroundColor("#FF0000"); final VLayout mainAppUI = new VLayout(); mainAppUI.setBackgroundColor("#00FF00"); mainAppUI.setWidth100(); mainAppUI.setHeight100(); mainAppUI.setMinWidth(1024); mainAppUI.setOverflow(Overflow.AUTO); vLayout.addMember(mainAppUI); final com.smartgwt.client.widgets.Window testWindow = new com.smartgwt.client.widgets.Window(); testWindow.setWidth(200); testWindow.setHeight(500); testWindow.setCanDragReposition(true); testWindow.setOverflow(Overflow.HIDDEN); Button bb = new Button("ffffff"); bb.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { testWindow.show(); } }); mainAppUI.addMember(bb); Label label = new Label("test App"); label.setHeight(3); label.setTop(40); label.setCanDragReposition(true); mainAppUI.addChild(label); vLayout.draw(); }
There are 2 scenarios for the bug:
1)Try to move(drag reposition) the label to the most right you will notice that a white space appear (this space is for a body space).
2)Click on the button and drag(drag reposition) the opened window to the most right as the white space will appear (this space is for a body space).
I can solve this issue by setting the overflow of the body to hidden, but at the same time I need to set a minimum width of the body, also I thought by changing the style to scroll of the body when it reaches the minimum width, but at the same time.
Also I found another solution by using keepInParent(Rectangle Rect), but I am developing a large application, I think it is not right to make every developers in the project to force them to use this method in the dragged object?
Does any one know how to solve this issue?
Any help is appreciated :)
Note: this bug appears on IE, Chrome and FF
Comment