You've already forked CEF4Delphi
							
							
				mirror of
				https://github.com/salvadordf/CEF4Delphi.git
				synced 2025-10-30 23:07:52 +02:00 
			
		
		
		
	Added default view rect values in OSR mode
This commit is contained in:
		| @@ -156,6 +156,10 @@ begin | ||||
|   if (TempObject <> nil) and (TempObject is TCefRenderHandlerOwn) then | ||||
|     TCefRenderHandlerOwn(TempObject).GetViewRect(TCefBrowserRef.UnWrap(browser), | ||||
|                                                  rect^); | ||||
|  | ||||
|   // CEF3 needs a rect with valid height and width | ||||
|   if (rect^.width  <= 0) then rect^.width  := 800; | ||||
|   if (rect^.height <= 0) then rect^.height := 600; | ||||
| end; | ||||
|  | ||||
| function cef_render_handler_get_screen_point(self             : PCefRenderHandler; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user