Appointment views - problem
Posted: Wed Dec 12, 2018 12:49 pm
Hi,
I found a problem when I switch between appointment views. One view is set 1 rows per time increment and second view have 3 rows. When is switching between them, then exception hapens.
Exception occurs at LayoutScrollOpProv() - at line vScrollBar1.Value=Math.Min(oldVScrollVal*ContrApptSheet2.Height/oldHeight,Math.Max(vScrollBar1.Maximum-vScrollBar1.LargeChange,0)); when oldVScrollVal < 0.
Change to vScrollBar1.Value=Math.Min(Math.Max(0,oldVScrollVal*ContrApptSheet2.Height/oldHeight),Math.Max(vScrollBar1.Maximum-vScrollBar1.LargeChange,0)); and it looks good.
Thanks.
I found a problem when I switch between appointment views. One view is set 1 rows per time increment and second view have 3 rows. When is switching between them, then exception hapens.
Exception occurs at LayoutScrollOpProv() - at line vScrollBar1.Value=Math.Min(oldVScrollVal*ContrApptSheet2.Height/oldHeight,Math.Max(vScrollBar1.Maximum-vScrollBar1.LargeChange,0)); when oldVScrollVal < 0.
Change to vScrollBar1.Value=Math.Min(Math.Max(0,oldVScrollVal*ContrApptSheet2.Height/oldHeight),Math.Max(vScrollBar1.Maximum-vScrollBar1.LargeChange,0)); and it looks good.
Thanks.