[PE mobile] Bug 47906
This commit is contained in:
parent
45a9058da4
commit
34098fc67f
|
@ -18,8 +18,8 @@ class PresentationSettingsController extends Component {
|
||||||
[12192000, 6858000, Asc.c_oAscSlideSZType.SzCustom]
|
[12192000, 6858000, Asc.c_oAscSlideSZType.SzCustom]
|
||||||
];
|
];
|
||||||
|
|
||||||
this.props.storePresentationSettings.changeSizeIndex(api.get_PresentationWidth(), api.get_PresentationHeight());
|
|
||||||
this.props.storePresentationSettings.initSlideSizes(slideSizes);
|
this.props.storePresentationSettings.initSlideSizes(slideSizes);
|
||||||
|
this.props.storePresentationSettings.changeSizeIndex(api.get_PresentationWidth(), api.get_PresentationHeight());
|
||||||
this.init = true;
|
this.init = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ class PresentationSettingsController extends Component {
|
||||||
let ratio = slideSizeArr[1] / slideSizeArr[0];
|
let ratio = slideSizeArr[1] / slideSizeArr[0];
|
||||||
let currentHeight = this.props.storePresentationSettings.currentPageSize.height;
|
let currentHeight = this.props.storePresentationSettings.currentPageSize.height;
|
||||||
let currentPageSize = {
|
let currentPageSize = {
|
||||||
width: (currentHeight || slideSizeArr[1]) / ratio,
|
width: ((currentHeight || slideSizeArr[1]) / ratio),
|
||||||
height: currentHeight
|
height: currentHeight
|
||||||
};
|
};
|
||||||
// api.changeSlideSize(slideSizeArr[0], slideSizeArr[1], slideSizeArr[2]);
|
// api.changeSlideSize(slideSizeArr[0], slideSizeArr[1], slideSizeArr[2]);
|
||||||
|
|
|
@ -6,10 +6,10 @@ import { useTranslation } from "react-i18next";
|
||||||
const PagePresentationSettings = props => {
|
const PagePresentationSettings = props => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const _t = t("View.Settings", { returnObjects: true });
|
const _t = t("View.Settings", { returnObjects: true });
|
||||||
// props.initSlideSize();
|
|
||||||
const storePresentationSettings = props.storePresentationSettings;
|
const storePresentationSettings = props.storePresentationSettings;
|
||||||
const slideSizeArr = storePresentationSettings.slideSizes;
|
const slideSizeArr = storePresentationSettings.slideSizes;
|
||||||
const slideSizeIndex = storePresentationSettings.slideSizeIndex;
|
const slideSizeIndex = storePresentationSettings.slideSizeIndex;
|
||||||
|
// console.log(slideSizeIndex);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
|
|
Loading…
Reference in a new issue