tdf#124235: Fix the same problem on all platforms the same way

Change-Id: Ie7ede59841898a0738af7e44a3c0fe89db1cd3ee
Reviewed-on: https://gerrit.libreoffice.org/71023
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index a58fd60..ce69406 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -658,17 +658,7 @@
		var dialogTitle = $('.lokdialog_notitle');
		if (dialogTitle != null && dialogTitle.length == 0) {
			var dialogTitleBar = $('.ui-dialog-titlebar');
			// tdf#124235: At least in the iOS app, multiplying with
			// L.getDpiScaleFactor() below causes the child of a combo box to be
			// displaced from the fixed part. I see the same problem also when using
			// Safari on a Retina Mac against normal online. But as I don't know whether
			// it happens also for other browsers on other platforms on hidpi displays,
			// I will fix this for the iOS app only for now.
			if (!window.ThisIsTheiOSApp) {
				top += dialogTitleBar.outerHeight() * L.getDpiScaleFactor();
			} else {
				top += dialogTitleBar.outerHeight();
			}
			top += dialogTitleBar.outerHeight();
		}

		floatingCanvas.id = strId + '-floating';