Subversion Repositories Kolibri OS

Rev

Rev 9296 | Rev 9348 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9296 Rev 9309
Line 341... Line 341...
341
}
341
}
Line 342... Line 342...
342
 
342
 
343
void SetElementSizes()
343
void SetElementSizes()
344
{
344
{
-
 
345
	omnibox_edit.width = Form.cwidth - omnibox_edit.left - 52 - 16;
-
 
346
	if (Form.cwidth - scroll_wv.size_x != WB1.list.w) {
-
 
347
		//temporary fix for crash
-
 
348
		//related to 'cur_img_url' var read
-
 
349
		//http://board.kolibrios.org/viewtopic.php?f=1&t=1712&start=60#p77523
-
 
350
		StopLoading();
345
	omnibox_edit.width = Form.cwidth - omnibox_edit.left - 52 - 16;
351
	}
346
	WB1.list.SetSizes(0, TOOLBAR_H+TAB_H, Form.cwidth - scroll_wv.size_x, 
352
	WB1.list.SetSizes(0, TOOLBAR_H+TAB_H, Form.cwidth - scroll_wv.size_x, 
347
		Form.cheight - TOOLBAR_H - STATUSBAR_H - TAB_H, BASIC_LINE_H);
353
		Form.cheight - TOOLBAR_H - STATUSBAR_H - TAB_H, BASIC_LINE_H);
348
	WB1.list.wheel_size = 7 * BASIC_LINE_H;
354
	WB1.list.wheel_size = 7 * BASIC_LINE_H;
349
	WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w + 1;
355
	WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w + 1;