G
Guest
Is there a way to make a Panel (or other control that can contain child
controls) so that it will size correctly at design time (based on CSS)?
Panel seems to be doing something weird at design time. I have a CSS with a
class .test { width: 40em } for example. If I drop a Panel on the page,
Clear the Width, Height and set CssClass to test, and put styleSheetTheme in,
the rendered size of the panel doesn't change at design time (works great at
run-time).
At first I thought this was a bug in design time rendering of the panel so I
created a class inherited from Panel and over-rode the Render method so that
it basically emits:
<div class="myclass">
child contents here
</div>
Oddly enough, the experience at design time remained unchanged. I'm
probabbly missing something really basic, but any help is appreciated.
controls) so that it will size correctly at design time (based on CSS)?
Panel seems to be doing something weird at design time. I have a CSS with a
class .test { width: 40em } for example. If I drop a Panel on the page,
Clear the Width, Height and set CssClass to test, and put styleSheetTheme in,
the rendered size of the panel doesn't change at design time (works great at
run-time).
At first I thought this was a bug in design time rendering of the panel so I
created a class inherited from Panel and over-rode the Render method so that
it basically emits:
<div class="myclass">
child contents here
</div>
Oddly enough, the experience at design time remained unchanged. I'm
probabbly missing something really basic, but any help is appreciated.