Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rich Lee 26 posts 116 karma points
    Sep 26, 2013 @ 16:34
    Rich Lee
    0

    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

  • [email protected] 406 posts 2135 karma points MVP 7x c-trib
    Sep 26, 2013 @ 16:52
    jeffrey@umarketingsuite.com
    0

    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

  • Rich Lee 26 posts 116 karma points
    Sep 26, 2013 @ 18:17
    Rich Lee
    0

    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();            }

            }

        }

    }

Please Sign in or register to post replies

Write your reply to:

Draft