I've made a .ascx user control and using it as a datatype in the back end with an "umbraco UserControl Wrapper" datatype. When I view the back-end page for content using this type then the tabbed page width is about halved compared to the 'default' width.
There's only JavaScript in the .aspx so far, and nothing in the code behind.
What to I need to do in my .ascx to re-set the width to 100%?
UserControl in back end affects panel width
Hi,
Umbraco 6.1.3
I've made a .ascx user control and using it as a datatype in the back end with an "umbraco UserControl Wrapper" datatype. When I view the back-end page for content using this type then the tabbed page width is about halved compared to the 'default' width.
There's only JavaScript in the .aspx so far, and nothing in the code behind.
What to I need to do in my .ascx to re-set the width to 100%?
Thanks in advance
Rich Lee
Hi Rich Lee,
is this the case in all browsers? And can you share the code; it looks like some standard CSS-errors?
Greetings Jeffrey
HI Jeffrey,
same in Chrome, FF, and IE10. It does look like a CSS issue, but with nothing specified I'm not sure why I don't get the back-end css by default.
Cheers
Rich Lee
.ascx is:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NewsImageRooter.ascx.cs" Inherits="Asp.TheNewWebsite.Web.UI.usercontrols.NewsImageRooter" %>
<script type="text/javascript">
$(document).ready(function () {
// do something
});
</script>
CodeBehind is:
using System;
using System.IO;
using System.Linq;
using Asp.MySite.Business.DocumentTypes;
using Asp.MySite.Web.UI.Code;
using Umbraco.Core;
namespace Asp.MySite.Web.UI.usercontrols
{
public partial class NewsImageRooter : System.Web.UI.UserControl, umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor
{
public string UmbracoValue;
protected void Page_Load(object sender, EventArgs e)
{
}
public object value
{
get { return UmbracoValue; }
set { UmbracoValue = value.ToString(); }
}
}
}
is working on a reply...