Commit 17cefe31 authored by Oleg Korshul's avatar Oleg Korshul

mimimum size for main panel

parent 62a40396
...@@ -1904,6 +1904,10 @@ function CEditorPage(api) ...@@ -1904,6 +1904,10 @@ function CEditorPage(api)
{ {
var _max = oWordControl.Height - parseInt(oWordControl.Splitter2PosMin * g_dKoef_mm_to_pix); var _max = oWordControl.Height - parseInt(oWordControl.Splitter2PosMin * g_dKoef_mm_to_pix);
var _min = oWordControl.Height - parseInt(oWordControl.Splitter2PosMax * g_dKoef_mm_to_pix); var _min = oWordControl.Height - parseInt(oWordControl.Splitter2PosMax * g_dKoef_mm_to_pix);
if (_min < (30 * g_dKoef_mm_to_pix))
_min = 30 * g_dKoef_mm_to_pix;
var _c = parseInt(oWordControl.Splitter2PosMin * g_dKoef_mm_to_pix); var _c = parseInt(oWordControl.Splitter2PosMin * g_dKoef_mm_to_pix);
if (_y > (_max + (_c / 2))) if (_y > (_max + (_c / 2)))
_y = oWordControl.Height; _y = oWordControl.Height;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment