On Tue, 16 Oct 2018 15:53:01 +0000 Yordan Karadzhov <ykaradzhov@xxxxxxxxxx> wrote: > + if ((freeSpace = viewSize - tableSize) > 0) { > + _view.setColumnWidth(nColumns - 1, _view.columnWidth(nColumns - 1) + > + freeSpace - > + 2); /* Just a little bit less space. > + * This will allow the scroll bar > + * to disappear when the widget > + * is extended to maximum. */ The above is rather ugly. Again, just have another patch on top that converts this to: if ((freeSpace = viewSize - tableSize) > 0) { _view.setColumnWidth(nColumns - 1, _view.columnWidth(nColumns - 1) + freeSpace - 2); /* Just a little bit less space. * This will allow the scroll bar * to disappear when the widget * is extended to maximum. */ } -- Steve