Design time panel weirdness

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top