I developed a web application that uses RadWindows to display many forms, but because of client resolution problems and the required size of the RadWindow, I needed to create optional pages for some of them. This leads me to my problem.
When the page is viewed in a RadWindow, I have a RadTimePicker that I have overridden the location using the RadCalendarPopup class.
.RadCalendarPopup {
left
:
50%
;
margin-left
:
-32px
;
position
:
absolute
;
top
:
0px
;
}
Now, the page will be rendered in a browser window on some occasions, therefore, I need to adjust the top location only when the page is viewed in a browser because a navigation menu is included in the top 50px. Thus, I need to change top to 50px;
One solution I have considered is to have two separate CSS files and simply load them as needed in the code-behind, but it seems overkill to duplicate alot of CSS code just for one rule.
I would use javascript client-side, but I have found that getting the correct wrapper div is quite unreliable.
I will entertain any suggestions.