mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:07:52 +02:00
Fix too wide web view
This commit is contained in:
parent
91176f4659
commit
9a92b5635d
3 changed files with 3 additions and 4 deletions
|
@ -21,6 +21,7 @@ Item {
|
||||||
signal newViewRequestedCallback(var request)
|
signal newViewRequestedCallback(var request)
|
||||||
signal loadingChangedCallback(var loadRequest)
|
signal loadingChangedCallback(var loadRequest)
|
||||||
|
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
property bool interactive: false
|
property bool interactive: false
|
||||||
|
|
||||||
|
@ -53,7 +54,8 @@ Item {
|
||||||
WebEngineView {
|
WebEngineView {
|
||||||
id: webViewCore
|
id: webViewCore
|
||||||
|
|
||||||
anchors.fill: parent
|
width: parent.width
|
||||||
|
height: parent.height
|
||||||
|
|
||||||
profile: HFWebEngineProfile;
|
profile: HFWebEngineProfile;
|
||||||
settings.pluginsEnabled: true
|
settings.pluginsEnabled: true
|
||||||
|
|
|
@ -231,8 +231,6 @@ int main(int argc, const char* argv[]) {
|
||||||
// Extend argv to enable WebGL rendering
|
// Extend argv to enable WebGL rendering
|
||||||
std::vector<const char*> argvExtended(&argv[0], &argv[argc]);
|
std::vector<const char*> argvExtended(&argv[0], &argv[argc]);
|
||||||
argvExtended.push_back("--ignore-gpu-blacklist");
|
argvExtended.push_back("--ignore-gpu-blacklist");
|
||||||
argvExtended.push_back("--enable-embedded-switches");
|
|
||||||
argvExtended.push_back("--disable-overlay-scrollbar");
|
|
||||||
int argcExtended = (int)argvExtended.size();
|
int argcExtended = (int)argvExtended.size();
|
||||||
|
|
||||||
Application app(argcExtended, const_cast<char**>(argvExtended.data()), startupTime, runningMarkerExisted);
|
Application app(argcExtended, const_cast<char**>(argvExtended.data()), startupTime, runningMarkerExisted);
|
||||||
|
|
|
@ -1952,7 +1952,6 @@ var PropertiesTool = function (opts) {
|
||||||
data.properties.keyLight.direction.y * DEGREES_TO_RADIANS
|
data.properties.keyLight.direction.y * DEGREES_TO_RADIANS
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
print("data properties " + data.properties)
|
|
||||||
Entities.editEntity(selectionManager.selections[0], data.properties);
|
Entities.editEntity(selectionManager.selections[0], data.properties);
|
||||||
if (data.properties.name !== undefined || data.properties.modelURL !== undefined ||
|
if (data.properties.name !== undefined || data.properties.modelURL !== undefined ||
|
||||||
data.properties.visible !== undefined || data.properties.locked !== undefined) {
|
data.properties.visible !== undefined || data.properties.locked !== undefined) {
|
||||||
|
|
Loading…
Reference in a new issue