@@ -15,18 +15,32 @@ public UpSertExpendituresPopUp(UpSertExpenditureVM vm)
1515 this . BindingContext = vm ;
1616 viewModel . PageLoadedCommand . Execute ( null ) ;
1717
18- #if ANDROID
19- var mainDisplayInfo = DeviceDisplay . MainDisplayInfo ;
20- var orientation = mainDisplayInfo . Orientation ;
21- var width = mainDisplayInfo . Width ;
22- var height = mainDisplayInfo . Height ;
23- var density = mainDisplayInfo . Density ;
24- var smallestWidth = Math . Min ( width , height ) * density ;
25- var popupWidth = smallestWidth * 0.115 ;
26-
27- var popupHeight = ( smallestWidth * 0.13 ) > 401 ? 350 : smallestWidth * 0.13 ;
28- Size = new Size ( popupWidth , popupHeight ) ;
29- #elif WINDOWS
18+ //#if ANDROID
19+ // var mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
20+ // var orientation = mainDisplayInfo.Orientation;
21+ // var width = mainDisplayInfo.Width;
22+ // var height = mainDisplayInfo.Height;
23+ // var density = mainDisplayInfo.Density;
24+ // var smallestWidth = Math.Min(width, height) / density;
25+ // var popupWidth = smallestWidth * 0.9;
26+
27+ // double popupHeight = 0;
28+ // if (smallestWidth < 415)
29+ // {
30+ // if ((smallestWidth * 0.13) > 401)
31+ // {
32+ // popupHeight = 350;
33+ // }
34+ // else
35+ // {
36+ // popupHeight = (double)(smallestWidth * 0.92);
37+ // }
38+
39+ // }
40+ // //else if(smallestWidth)
41+
42+ // Size = new Size(popupWidth, popupHeight);
43+ #if WINDOWS
3044 this . Size = new Size ( 400 , 400 ) ;
3145#endif
3246 viewModel . PropertyChanged += ViewModel_PropertyChanged ;
@@ -46,7 +60,6 @@ private void ViewModel_PropertyChanged(object sender, System.ComponentModel.Prop
4660 }
4761 }
4862
49-
5063
5164 private void UnitPrice_TextChanged ( object sender , TextChangedEventArgs e )
5265 {
0 commit comments