English 中文(简体)
如何独立解决聪明适用问题?
原标题:How to make smart-gwt application resolution independent?
  • 时间:2010-10-28 11:47:00
  •  标签:
  • smartgwt

I am developing smart gwt application, As per smart FAQ we have to give smart gwt component height, width in pixels. Giving size in pixels will not behave uniform in all resolutions.

谁能告诉如何使决议独立? 因此,它在所有决议中都是一致的?

Thanks, Punam Purohit

最佳回答

In SmartGWt we can specify height or width in terms of percentage or pixels. if u see in layout or canvas or any item s function will have setWidth(String width) & setHeight(String height), this string parameter will accept either pixels or percentage values.

外部:Vlayout.setWidth(“50%”)将确定50%的屏幕尺寸与相应的布局。

Refer javadoc of any SetWidth or setHages :

问题回答

我有一把“SmartGWT”用作时段,但我记得,大多数植被都超载了接受百分数的固定金。

不管怎么说,适当的方法应该是利用布局来形成你的植被状况。





相关问题
SmartGWT calendar month widget

I am evaluating whether to use SmartGWT, and have no prior experience with it. I have one particular question on the Calendar widget. When you go to a airline/car rental website, and you need to ...

SmartGWT slow images rendering

I have a SmartGWT 2.0 application where I have to render a few hundred small images and this is taking very, very long (>20s). It s a intranet application. Do you have any idea how I could speed up ...

Smart-Gwt ScrolledHandler usage

I would like to do something when a scroll event has occurred on a smartgwt window. I m assuming that an event will be fired when at least one of the following has happened: scroll within window with ...

Proper way to disable browser spellcheck in Smart GWT?

Does anyone know a nice way to prevent SmartGWT from creating TextItem form items with the spellcheck="true" set? It s annoying to get spellcheck markers on name fields etc. The nuclear option is ...

SmartGWT with GWT?

Greetings , I have been using GWT for few weeks and wanted a rich Table widget.I came across with SmartGWT library. Can I use SmartGWT widgets same way I develop using GWT or is there any special ...

is smartGWT really as slow as its showcase is?

I ve started implementing my web application using smartGWT. Is it really as slow as it is on the showcase? It s practically unreasonably slow. I m in a new empty project that all it does it ...

热门标签