Did you try setNativeScrollingEnabled(false) on the browser component? On Thursday, August 6, 2020 at 11:46:05 AM UTC+3 [email protected] wrote:
> In Chrome I see that control in a very big size but it is tiny in fact, > with just the scrollbars, but the editor is inside, I see some little area > of it. The BrowserComponent has not expanded like in JavaFX. Please see the > attached image. > In general I would like to know how to set the size of a component to > "wrap_content" or "match_parent", unless I am missing something obvious, my > fault. > Thanks in advance > > > Il giorno mercoledì 5 agosto 2020 20:47:39 UTC+2, Steve Hannah ha scritto: > >> While your app is open, you can debug the web view in Chrome by going to >> http://localhost:8088 >> >> That might offer you some clues as to what is going wrong. >> >> >> >> On Wed, Aug 5, 2020 at 11:28 AM 'Angelo Maci' via CodenameOne Discussions >> <[email protected]> wrote: >> > My Codename app has a BrowserComponent with a text editor inside. When >>> JavaFX was used the editor was displayed but had some issues. >>> Now I am running the same code with CEF support. I had to copy the >>> .....idea-IC-201.7223.91/jbr/lib/libjawt.so file into the >>> /home/pc/.codenameone/cef/lib/linux64 folder to get the BrowserComponent >>> loaded. >>> Now I can see just horizontal and vertical scrollbar, and no content. >>> In log I get this: >>> >>> CEF Args: [--disable-gpu, --disable-software-rasterizer, >>> --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream, >>> --device-scale-factor=4, --force-device-scale-factor=4, >>> --autoplay-policy=no-user-gesture-required, >>> --enable-usermedia-screen-capturing] >>> Using: >>> JCEF Version = 83.4.0.260 >>> CEF Version = 83.4.0 >>> Chromium Version = 83.0.4103.106 >>> initialize on Thread[AWT-EventQueue-0,6,main] with library path >>> /home/pc/.codenameone/cef/lib/linux64 >>> Added scheme search:// >>> Added scheme client:// >>> Added scheme cn1stream:// >>> >>> DevTools listening on ws:// >>> 127.0.0.1:8088/devtools/browser/acb758a2-831d-41c5-9102-d61c9fbadc52 >>> AppHandler.stateHasChanged: NEW >>> AppHandler.stateHasChanged: INITIALIZING >>> AppHandler.stateHasChanged: INITIALIZED >>> CEF Args: [--disable-gpu, --disable-software-rasterizer, >>> --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream, >>> --device-scale-factor=4, --force-device-scale-factor=4, >>> --autoplay-policy=no-user-gesture-required, >>> --enable-usermedia-screen-capturing] >>> Setting URL but not ready https://cn1app/streams/1 >>> Running ready callbacks >>> Running ready callbacks >>> Setting url https://cn1app/streams/1 >>> Exception in thread "AWT-EventQueue-0" Exception in thread >>> "AWT-EventQueue-0" Stream was closed >>> Address changed to https://cn1app/streams/1 >>> onload >>> Exception in thread "AWT-EventQueue-0" Exception in thread >>> "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in >>> thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception >>> in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" >>> Exception in thread "AWT-EventQueue-0" Exception in thread >>> "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" >>> >>> my system is >>> >>> IntelliJ IDEA 2020.2 (Community Edition) >>> Build #IC-202.6397.94, built on July 27, 2020 >>> Runtime version: 11.0.7+10-b944.20 amd64 >>> VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. >>> Linux 5.4.0-42-generic >>> GC: ParNew, ConcurrentMarkSweep >>> Memory: 949M >>> Cores: 4 >>> Non-Bundled Plugins: com.codename1.plugin.intellij >>> Current Desktop: ubuntu:GNOME >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "CodenameOne Discussions" group. >>> >> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >> >> >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/codenameone-discussions/ff0d12eb-f412-4777-bcc6-e90eab8e3275o%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/codenameone-discussions/ff0d12eb-f412-4777-bcc6-e90eab8e3275o%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> Steve Hannah >> Software Developer >> Codename One >> http://www.codenameone.com >> > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/baa5c0c3-618d-4cb5-af84-18c7a7fa519cn%40googlegroups.com.
