fixed VC pandora_enterprise#8888
This commit is contained in:
parent
1bf1a83782
commit
d22c667776
|
@ -227,6 +227,8 @@ abstract class Model
|
|||
$ratio_visualconsole = $this->getRatio();
|
||||
$ratio_w = ($size['width'] / $this->data['width']);
|
||||
$ratio_h = ($size['height'] / $this->data['height']);
|
||||
$acum_height = $this->data['height'];
|
||||
$acum_width = $this->data['width'];
|
||||
|
||||
$this->data['width'] = $size['width'];
|
||||
$this->data['height'] = ($size['width'] * $ratio_visualconsole);
|
||||
|
@ -240,6 +242,11 @@ abstract class Model
|
|||
$this->data['height'] = $size['height'];
|
||||
$this->data['width'] = ($size['height'] / $ratio_visualconsole);
|
||||
}
|
||||
} else {
|
||||
$ratio = $ratio_w;
|
||||
$height = (($acum_height * ($size['width'])) / $acum_width);
|
||||
$this->data['height'] = $height;
|
||||
$this->data['width'] = ($height / $ratio_visualconsole);
|
||||
}
|
||||
} else {
|
||||
if ($this->data['height'] > $this->data['width']) {
|
||||
|
|
|
@ -1004,9 +1004,22 @@ class Ui
|
|||
$(document).ready(function () {
|
||||
dashboardLoadVC(settings);
|
||||
if(settings.mobile_view_orientation_vc === false) {
|
||||
$(".container-center").css("transform", "rotate(90deg)");
|
||||
$(".container-center").css("margin-top", "40px");
|
||||
//$(".container-center").css("transform", "rotate(90deg)");
|
||||
//$(".container-center").css("margin-top", "40px");
|
||||
$("#main_page > .ui-content").css("display", "block");
|
||||
|
||||
$(".container-center").css("padding", "50% 0");
|
||||
$(".visual-console-container-dashboard").css("display", "block");
|
||||
$(".visual-console-container-dashboard").css("transform-origin", "left top");
|
||||
$(".visual-console-container-dashboard").css("transform", "rotate(-90deg) translate(-100%)");
|
||||
$(".visual-console-container-dashboard").css("margin-top", "-50%");
|
||||
$(".visual-console-container-dashboard").css("white-space", "nowrap");
|
||||
if(settings.props.height > settings.props.width) {
|
||||
$(".container-center").css("overflow", "auto");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
</script>'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue