About CornerRounderBottom and CornerRounderTop.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/20/2009 3:30:47 AM
Gravatar
Total Posts 59

About CornerRounderBottom and CornerRounderTop.

Hi, Joe

Now, In CornerRounderTop.cs

////////////////////////////////////////////////////////////////

protected override void Render(HtmlTextWriter writer)
{
if (this.Site != null && this.Site.DesignMode)
{
// render to the designer
writer.Write("[" + this.ID + "]");
}
else
{
if (DoRounding)
{
writer.Write("<div class='rtop'><div class='r1'></div><div class='r2'></div><div class='r3'></div><div class='r4'></div></div>");
}
///////////////////////////////////////////////////////////////////

The bold line code is not flexible ,is not Configurable, I hope the bold html code  can be replaced by a resource string item or a appSettings string item.

Then I can use a image not divs for cornerRounder, or I can use table element to layout the whole page, it is better than div in layout. I don't like div for layout, it is so different between ie and firefox.  but table element is so good for layout.WPF use table layout too, I like it.

The same in CornerRounderBottom.cs
 

Thanks!

 

 

7/20/2009 6:26:55 AM
Gravatar
Total Posts 18439

Re: About CornerRounderBottom and CornerRounderTop.

Hi mjohn,

Those divs can be used to hang images or to do a css trick for corner rounding without images as documented here:

http://www.mojoportal.com/rounding-corners.aspx

I can/will make that string into a settable property but then it can be set easily to something that does not work. You would have to set the property using the theme.skin file which is also where we set the DoRounding property. Not so sure that will even work setting a property with Html inside the theme.skin.

Best,

Joe

8/5/2009 7:34:33 AM
Nux
Gravatar
Total Posts 183

Re: About CornerRounderBottom and CornerRounderTop.

Hey there,

can someone confirm that changing the setting of the DoRounding does effect the html output?
Cause I have changed that in a couple of sites and I still get the rtop ... divs in my html.
Perhaps I do something wrong?

Stef

8/5/2009 7:43:06 AM
Gravatar
Total Posts 18439

Re: About CornerRounderBottom and CornerRounderTop.

Hi Stef,

If you're in medium trust hosting then our custom VirtualPathProvider does not work so it can't load the theme.skin file from the skin folder. In that case it uses the one from the App_Themes/Default folder so you would have to edit that one (and do it again after each upgrade since the one I ship has corner rounding enabled). In this case it will also affect all sites in an installation since they all use that same theme.skin file.

After changing it you may also need to touch the Web.config to recycle the app as the theme is heavily cached by the runtime.

Hope it helps,

Joe

8/5/2009 9:01:17 AM
Nux
Gravatar
Total Posts 183

Re: About CornerRounderBottom and CornerRounderTop.

Well, I did it all .

First did the .skin in the layout folder, without any result. The site is not in medium trust, but is a multisite configuration. So I change the skin in App_Themes folder, just to see what happened. No change. "Changing" the web.config gives the same result.
I checked the other site in that configuration, and it seems ok for that site. I tried it also on the site that has a single site configuration, without any luck.

Mistery...

Stef
 

8/5/2009 9:30:45 AM
Gravatar
Total Posts 18439

Re: About CornerRounderBottom and CornerRounderTop.

The ASP.NET runtime caches that stuff so heavily it may take more than a Web.config change to clear the theme cache, if you have a method in the control panel to recycle the application pool after making the change it should work, it works for me. 

Hope it helps,

Joe

8/6/2009 4:23:24 AM
Nux
Gravatar
Total Posts 183

Re: About CornerRounderBottom and CornerRounderTop.

Hey Joe,

no changes after clearing the application pool. I will first check everything again and let you know something.

Stef

You must sign in to post in the forums. This thread is closed to new posts.