-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap does not work with Awesomium #87
Comments
Executing |
I have this same problem with v1.7.5.1 C++. Bootstrap sites do not align properly by default. However if I open the remote debugger for the view, it magically fixes itself after the remote debugger finishes loading. |
I found a workaround for the time being. It is not the most elegant way to fix this but it does work. this->m_WebView->set_load_listener(this); Inside of the event 'OnDocumentReady' you can do the following to force the page to update and realign properly: void YourClassObjectNameHere::OnDocumentReady(Awesomium::WebView* caller, const Awesomium::WebURL& url)
{
caller->ExecuteJavascript(Awesomium::WSLit("window.scrollTo(0,-1);"), Awesomium::WSLit(""));
} When the page loads it should fix itself. This works for me with the latest C++ build of Awesomium. |
I have tried to implement this workaround for .Net with no success. I don't know what would correspond to set_load_listener but executing |
Try using the 'OnFinishLoadingFrame'. Check if the current frame the call is for is the main frame, if so then execute the JS. |
This event does not exist in .Net. There exists |
Btw. it does also not work on OS X using OSMWebView. |
There can be no native solution to this until v2.0 that will upgrade the version of Chromium Awesomium is based on, but we will investigate how the suggested workarounds can be applied on Awesomium.NET. |
Btw. This might also be the reason for this issue: |
Are there any updates regarding a workaround? |
I ditched Awesomium and moved to CEF since Awesomium is obviously abandon-ware at this rate. |
Tested with 1.7.5.1 (.Net)
To reproduce browse to http://getbootstrap.com/getting-started/ with an Awesomium Web view. You will notice that the menus are collapsed into the drop-down because somehow bootstrap fails to see the page size. The difference can be seen straight away when comparing with Chrome for example.
The text was updated successfully, but these errors were encountered: