logo
down
shadow

SmartGWT Canvas width problem


SmartGWT Canvas width problem

By : user3862274
Date : November 22 2020, 07:01 PM
hop of those help? In which browser and which version it is happening.Your code is working in my system without scroll bar.And In smartgwt no need to add the canvas to RootPanel.Just call view.draw() .It will render in the screen.
Verify your html body width also.
code :


Share : facebook icon twitter icon
SmartGWT Calendar Width and Height

SmartGWT Calendar Width and Height


By : user1491257
Date : March 29 2020, 07:55 AM
may help you . Luminari at #gwt on freenode suggested I use a SimplePanel to wrap the calendar and size it down then add it to the TabBar. !
SmartGWT: hide current element showing in Canvas

SmartGWT: hide current element showing in Canvas


By : user3631089
Date : March 29 2020, 07:55 AM
This might help you If what you want is basically mutex display, you could put all the components as members of a Layout instead of a Canvas, then use setVisibleMember(). That hides all other members.
SmartGWT Canvas getPrintHTML

SmartGWT Canvas getPrintHTML


By : Love Kumawat
Date : March 29 2020, 07:55 AM
hop of those help? Take a look at the SmartGWT EE Javadoc.
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/Printing.html
SmartGWT: Handling mouse down when a child element of Canvas is clicked

SmartGWT: Handling mouse down when a child element of Canvas is clicked


By : Dan Swan
Date : March 29 2020, 07:55 AM
should help you out As ZalewaPL said, it is better to avoid mixing gwt and smartgwt widgets. I suggest you to use the TextAreaItem from smartgwt added to a DynamicForm. Here is a simple example:
code :
final Canvas can = new Canvas();
can.setCanFocus(true);
can.setBorder("2px Solid Blue");
can.setCanDragResize(true);
DynamicForm form = new DynamicForm();
TextAreaItem tai = new TextAreaItem("textarea");
form.setFields(tai);
can.addChild(form);
can.addMouseDownHandler(new MouseDownHandler() {

    @Override
    public void onMouseDown(MouseDownEvent event) {
        changeCanvasBorder(can);
    }
});
abstract class CustomMouseDownHandler implements com.smartgwt.client.widgets.events.MouseDownHandler, com.google.gwt.event.dom.client.MouseDownHandler {
    @Override
    public void onMouseDown(com.smartgwt.client.widgets.events.MouseDownEvent event) {
        onMouseDown();
    }

    @Override
    public void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event) {
        onMouseDown();
    }

    public abstract void onMouseDown();
}

final Canvas can = new Canvas();
can.setCanFocus(true);
can.setBorder("2px Solid Blue");
can.setCanDragResize(true);
TextArea ta = new TextArea();
CustomMouseDownHandler mdh = new CustomMouseDownHandler() {

    @Override
    public void onMouseDown() {
        changeCanvasBorder(can);
    }
};
ta.addMouseDownHandler(mdh);
can.addChild(ta);
can.addMouseDownHandler(mdh);
auto width canvas smartgwt

auto width canvas smartgwt


By : user4630409
Date : March 29 2020, 07:55 AM
wish help you to fix your issue Almost a year late to the party I know, but if this helps someone else it's worth it. SmartGWT has a small oddity with respect to auto width - you must combine it with setOverflow(Overflow.VISIBLE) for it to work. Put setAutoWidth and the overflow together on the same Layout/Canvas and it will size to its own width.
shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk