Merge pull request #3656 from ritzalam/check-presentation-coordinates

Fix issue where presentation page is displayed incorrectly
This commit is contained in:
Richard Alam 2017-02-13 15:46:42 -05:00 committed by GitHub
commit 4d5782a2e1

View File

@ -88,6 +88,12 @@ trait PresentationApp {
}
def handleResizeAndMoveSlide(msg: ResizeAndMoveSlide) {
// Force coordinate that are out-of-bounds inside valid values
val xOffset = if (msg.xOffset <= 0) msg.xOffset else 0
val yOffset = if (msg.yOffset <= 0) msg.yOffset else 0
val width = if (msg.widthRatio <= 100) msg.widthRatio else 100
val height = if (msg.heightRatio <= 100) msg.heightRatio else 100
val page = presModel.resizePage(msg.xOffset, msg.yOffset,
msg.widthRatio, msg.heightRatio);
page foreach (p => outGW.send(new ResizeAndMoveSlideOutMsg(mProps.meetingID, mProps.recorded, p)))