Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!edcastle!aipna!cstr!rick From: rick@cstr.ed.ac.uk (Rick Innis) Newsgroups: comp.windows.x Subject: Athena Viewport Widget behaviour (bug?) Message-ID: Date: 20 Jul 90 16:39:50 GMT Sender: news@aipna.ed.ac.uk Distribution: comp Organization: CSTR, University of Edinburgh Lines: 24 I've found what I consider to be a bug in the Athena Viewport widget. Consider the following situation: A Viewport is created with, say, a Form as its child. The Form contains children of its own, which are free to ask their parent to resize them. When they do this, the Form reconfigures its layout, in the course of which it may make a resize request of its parent, the Viewport. Now, when the Viewport gets a geometry request from its child, it checks to see if the request is allowable. If so, it checks to see whether the new value is greater than the previous one. If it is, it shrinks the child by the space needed to display a scrollbar. It does this *without checking to see if the scrollbar is already displayed*. This seems broken to me. Firstly, it should check to see if the scrollbar is displayed (not difficult). Secondly, I think the child has a better idea what size it wants to be than the Viewport does - the Viewport should adjust its own size to allow for the scrollbar rather than shrinking its child. If this is felt to constitute a bug I'll be happy to provide a fix. Otherwise I'll just keep working around it in my own code. --Rick.