Fix too wide web view

This commit is contained in:
vladest 2017-10-05 15:17:37 +02:00
parent 91176f4659
commit 9a92b5635d
3 changed files with 3 additions and 4 deletions

View file

@ -21,6 +21,7 @@ Item {
signal newViewRequestedCallback(var request)
signal loadingChangedCallback(var loadRequest)
width: parent.width
property bool interactive: false
@ -53,7 +54,8 @@ Item {
WebEngineView {
id: webViewCore
anchors.fill: parent
width: parent.width
height: parent.height
profile: HFWebEngineProfile;
settings.pluginsEnabled: true

View file

@ -231,8 +231,6 @@ int main(int argc, const char* argv[]) {
// Extend argv to enable WebGL rendering
std::vector<const char*> argvExtended(&argv[0], &argv[argc]);
argvExtended.push_back("--ignore-gpu-blacklist");
argvExtended.push_back("--enable-embedded-switches");
argvExtended.push_back("--disable-overlay-scrollbar");
int argcExtended = (int)argvExtended.size();
Application app(argcExtended, const_cast<char**>(argvExtended.data()), startupTime, runningMarkerExisted);

View file

@ -1952,7 +1952,6 @@ var PropertiesTool = function (opts) {
data.properties.keyLight.direction.y * DEGREES_TO_RADIANS
);
}
print("data properties " + data.properties)
Entities.editEntity(selectionManager.selections[0], data.properties);
if (data.properties.name !== undefined || data.properties.modelURL !== undefined ||
data.properties.visible !== undefined || data.properties.locked !== undefined) {