mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
[project @ 2004-11-09 23:32:40 by rjw]
Fix window resizing oddity svn path=/import/netsurf/; revision=1354
This commit is contained in:
parent
4d520be08c
commit
9eee2a8246
@ -915,21 +915,21 @@ void ro_gui_window_open(struct gui_window *g, wimp_open *open)
|
||||
g->reformat_pending = true;
|
||||
gui_reformat_pending = true;
|
||||
}
|
||||
|
||||
g->old_width = width;
|
||||
g->old_height = height;
|
||||
|
||||
if (content && width < content->width * 2 * g->option.scale)
|
||||
width = content->width * 2 * g->option.scale;
|
||||
else {
|
||||
os_box extent = { 0, -height, width, toolbar_height };
|
||||
error = xwimp_set_extent(g->window, &extent);
|
||||
if (error) {
|
||||
LOG(("xwimp_set_extent: 0x%x: %s",
|
||||
error->errnum, error->errmess));
|
||||
warn_user("WimpError", error->errmess);
|
||||
return;
|
||||
}
|
||||
os_box extent = { 0, -height, width, toolbar_height };
|
||||
error = xwimp_set_extent(g->window, &extent);
|
||||
if (error) {
|
||||
LOG(("xwimp_set_extent: 0x%x: %s",
|
||||
error->errnum, error->errmess));
|
||||
warn_user("WimpError", error->errmess);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
error = xwimp_open_window(open);
|
||||
|
Loading…
Reference in New Issue
Block a user