If the table doesn't have any data loaded, no problems.
Any ideas?
On Wed, Apr 25, 2012 at 1:23 PM, Scott Chapman <[email protected]> wrote:
> I have the following code which will demonstrate this. I run it in
> Playground and it works like it should.
> I run it in a browser and it locks up every time.
>
> Start the browser big, then resize it down to where it is smaller than the
> width of the table. It will lock up the browser. I'm seeing this in
> Firefox and Chrome (latest versions) on Windows and Linux.
>
> I tried making a tinyurl out of this in the Playground but TinyURL didn't
> like it, so here it is.
>
> I'd love to know how to prevent this problem. This is an application in
> production and it's causing serious problems with my users.
>
> Scott
>
> qx.Class.define("TabView",
> {
> extend : qx.ui.tabview.TabView,
> construct : function(label)
> {
> this.base(arguments, label);
> this.__main_page = new TabUploadFile();
> this.add(this.__main_page);
> }
> });
> qx.Class.define("TabUploadFile",
> {
> extend : qx.ui.tabview.Page,
> construct : function()
> {
> this.base(arguments, 'UPLOAD');
> this.setLayout(new qx.ui.layout.VBox().set({spacing: 4}));
>
> this.__downloadable_files_table = new TableDownloadableFiles().set({
> maxWidth: 775
> });
>
> this.add(this.__downloadable_files_table);
> }
> });
> qx.Class.define("TableDownloadableFiles",
> {
> extend : qx.ui.table.Table,
> construct : function()
> {
> this.base(arguments);
> this.setInitiallyHiddenColumns([0]);
> this.setColumnVisibilityButtonVisible(false);
> var tableModel = new qx.ui.table.model.Simple();
> tableModel.setColumns([ "ID", "FileName", "Destination", "MakePath",
> "Overwrite","Owner", "Permissions", "Description"]);
> this.setTableModel(tableModel);
> this.setColumnWidth(1, 120);
> this.setColumnWidth(2, 120);
> this.setColumnWidth(3, 80);
> this.setColumnWidth(4, 80);
> this.setColumnWidth(5, 80);
> this.setColumnWidth(6, 90);
> this.setColumnWidth(7, 200);
> this.setStatusBarVisible(true);
> this.setShowCellFocusIndicator(false);
> this.__tcm = this.getTableColumnModel();
> this.__tcm.setDataCellRenderer(3, new
> qx.ui.table.cellrenderer.Boolean());
> this.__tcm.setDataCellRenderer(4, new
> qx.ui.table.cellrenderer.Boolean());
> var nativeData = [ ];
> var row = [1, "syslog.txt", "/tmp/", 0, null, "root", "0644",
> "Test"];
> if (row[3] == 1) {
> row[3] = true;
> } else {
> row[3] = false;
> }
> if (row[4] == 1) {
> row[4] = true;
> } else {
> row[4] = false;
> }
> nativeData.push(row);
> tableModel.setData(nativeData);
> var row_count = tableModel.getRowCount();
> this.setHeight(40 + 20 * row_count);
> }
> });
> var root = this.getRoot();
> this.__tabView = new TabView();
> qx.core.Init.getApplication().setUserData("mainTabs", this.__tabView);
> root.add(this.__tabView, {edge: 0});
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel