Hello,
When using AutoFitTextAreaItem as a listgrid editor the height of the editor is incorrectly calculated, atleast when using Chrome. Reproduce with:
Use the above code and start editing a cell in the grid. Type few rows of content and keep typing and notice that after a while the height of the editor starts to grow even though it should not have to.
SmartClient Version: v9.0p_2013-10-22/LGPL Development Only (built 2013-10-22). Latest Google Chrome on Mac.
br,
Marko
When using AutoFitTextAreaItem as a listgrid editor the height of the editor is incorrectly calculated, atleast when using Chrome. Reproduce with:
Code:
public ListGridRecord r(Integer i) { ListGridRecord r = new ListGridRecord(); r.setAttribute("f1", "Text " + i); r.setAttribute("f2", "Text " + i); return r; } public void onModuleLoad() { SC.showConsole(); viewport = new VLayout(); viewport.setWidth100(); viewport.setHeight100(); viewport.setMembersMargin(20); DataSource ds = new DataSource(); DataSourceTextField f1f = new DataSourceTextField("f1"); DataSourceTextField f2f = new DataSourceTextField("f2"); ds.setFields(f1f, f2f); ds.setTestData(r(1), r(2), r(3)); ds.setClientOnly(true); final ListGrid g = new ListGrid(); g.setDataSource(ds); g.setWidth(500); g.setHeight(200); g.setAutoFetchData(true); g.setCanEdit(true); final ListGridField f1 = new ListGridField("f1"); f1.setEditorType(new AutoFitTextAreaItem()); final ListGridField f2 = new ListGridField("f2"); f2.setEditorType(new AutoFitTextAreaItem()); g.setFields(f1, f2); viewport.addMember(g); viewport.draw(); }
SmartClient Version: v9.0p_2013-10-22/LGPL Development Only (built 2013-10-22). Latest Google Chrome on Mac.
br,
Marko
Comment