Page 1 of 1

6.30 WebGadget and WebViewGadget have a 1px border

Posted: Mon Feb 16, 2026 5:46 pm
by infratec
Hi,

in PB 6.30 x64, the WebGadget and the WebViewGadget shows always a 1 pixel border arround.

Code: Select all

If OpenWindow(0, 0, 0, 400, 80, "Web border test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  WebViewGadget(0, 0, 0, 400, 20)
  SetGadgetItemText(0, #PB_WebView_HtmlCode, "<html><head></head><body style='background-color: red;'></body></html>")
  
  WebGadget(1, 0, 20, 400, 20, "")
  SetGadgetItemText(1, #PB_Web_HtmlCode, "<html><head></head><body style='background-color: blue;'></body></html>")
  
  WebViewGadget(2, 0, 40, 400, 20)
  SetGadgetItemText(2, #PB_WebView_HtmlCode, "<html><head></head><body style='background-color: green;'></body></html>")
  
  WebGadget(3, 0, 60, 400, 20, "")
  SetGadgetItemText(3, #PB_Web_HtmlCode, "<html><head></head><body style='background-color: yellow;'></body></html>")
  
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Btw. in windows there are no borders arround.

Re: 6.30 WebGadget and WebViewGadget have a 1px border

Posted: Sun Feb 22, 2026 3:17 pm
by mrbungle
Confirmed. This has been the behavior for several versions.