Delete redundant browser_window_type test.

svn path=/trunk/netsurf/; revision=12716
This commit is contained in:
Michael Drake 2011-09-04 19:18:01 +00:00
parent e1f20d37c5
commit 9856bc0923
1 changed files with 1 additions and 2 deletions

View File

@ -1437,8 +1437,7 @@ void gui_window_set_extent(struct gui_window *g, int width, int height)
/* the top-level framed window is a total pain. to get it to maximise /* the top-level framed window is a total pain. to get it to maximise
* to the top of the screen we need to fake it having a suitably large * to the top of the screen we need to fake it having a suitably large
* extent */ * extent */
if (g->bw->children && if (g->bw->children) {
(g->bw->browser_window_type == BROWSER_WINDOW_NORMAL)) {
ro_gui_screen_size(&screen_width, &height); ro_gui_screen_size(&screen_width, &height);
if (g->toolbar) if (g->toolbar)
height -= ro_toolbar_full_height(g->toolbar); height -= ro_toolbar_full_height(g->toolbar);