Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

custom (fixed) width

Last post 04-29-2005, 12:27 PM by cutechat. 7 replies.
Sort Posts: Previous Next
  •  04-28-2005, 5:32 AM 6218

    custom (fixed) width

    hi,
    i am trying to show cutechat v2.0 in a fixed-width element. there seem to be clientwidth-dependant manipulations in your encrypted functions. how can i fix the 'chat_layout' width please?
  •  04-28-2005, 11:16 AM 6226 in reply to 6218

    Re: custom (fixed) width

    Sorry, I cant help you, but Im also looking foreward to see the answer to this one.
     
    Furthermore, if I insert a table at the top of the page it shows fine when the page is loaded, but when the page is resized, there is about 1½ cm free space at the top and the table I have inserted at the bottom of the page also disapears after a resize og the window!!
     
    I hope there is a way to manipulate the resize script?
     
    Brgds
  •  04-28-2005, 12:21 PM 6230 in reply to 6218

    Re: custom (fixed) width

    Hello:
     
    There is a small script in the end of the CH_MainForm.aspx
     
    it would look like :
     
     <script>
      
     var OxO1565=["all","clientWidth","body","width","style","px","clientHeight","height","innerWidth","innerHeight","className","buttonover","button"]; AdjustLayout() ; setInterval(AdjustLayout,0x64) ; function AdjustLayout(){if(document[OxO1565[0x0]]){ chat_layout[OxO1565[0x4]][OxO1565[0x3]]=document[OxO1565[0x2]][OxO1565[0x1]]-0x6+OxO1565[0x5] ; chat_layout[OxO1565[0x4]][OxO1565[0x7]]=document[OxO1565[0x2]][OxO1565[0x6]]-0x6+OxO1565[0x5] ;} else { chat_layout[OxO1565[0x4]][OxO1565[0x3]]=window[OxO1565[0x8]]-0x6+OxO1565[0x5] ; chat_layout[OxO1565[0x4]][OxO1565[0x7]]=window[OxO1565[0x9]]-0x6+OxO1565[0x5] ;} ;}  ; function m_over(element){ element[OxO1565[0xa]]=OxO1565[0xb] ;}  ; function m_out(element){ element[OxO1565[0xa]]=OxO1565[0xc] ;}  ;
     </script>
     
    You need to remove it .
     
    Regards , Terry .
  •  04-28-2005, 12:23 PM 6231 in reply to 6230

    Re: custom (fixed) width

    The origin code is :
     
     <script>
      
     AdjustLayout();
     
     setInterval(AdjustLayout,100);
     
     function AdjustLayout()
     {
      if(document.all)
      {
       chat_layout.style.width=document.body.clientWidth-6+"px";
       chat_layout.style.height=document.body.clientHeight-6+"px";
      }
      else
      {
       chat_layout.style.width=window.innerWidth-6+"px";
       chat_layout.style.height=window.innerHeight-6+"px";
      }
     }
     function m_over(element) {
      element.className='buttonover';
     }
     function m_out(element) {
      element.className='button';
     }
     </script>
     
    Please remain the m_over and the m_out.
     
    Regards ,Terry .
     
  •  04-28-2005, 12:59 PM 6237 in reply to 6231

    Re: custom (fixed) width

    That helped a bit, but not quite enough. The box, that looks like a fieldset (round corners is still the same size), so the online list is still at the same place. Furthermore, there are scrollbars in the Messagearea now.

    Brgds
     
     
  •  04-29-2005, 4:44 AM 6276 in reply to 6237

    Re: custom (fixed) width

    Please help on this issue, that is only solved halfway, there is still an element with the rounded corners, that needs to be resized before the onlinelist can move to the left. The onlinelist is still in the same position.
     
    What about the nullpointer your application sends to the **UserAdapter ? When will this be fixed? Maybe you have a workaround for it?
     
    Brgds
  •  04-29-2005, 10:16 AM 6294 in reply to 6276

    Re: custom (fixed) width

    Hi, you might want to try this:
     
    1. find the /cutesoft_client/cutechat/skins/layout.js file and open it
    2. find the //MIDDLE comment
    Looks like this:

    //MIDDLE

    var tdmdl_l=trmdl.insertCell(-1);

    var tdmdl_r=trmdl.insertCell(-1);

    var ft_ml=BuildFrameTable("#ffffff");

    tdmdl_l.appendChild(ft_ml);

    ft_ml.containerElement.appendChild(chat_layout_message);

    var ft_mr=BuildFrameTable("#ffffff");

    tdmdl_r.appendChild(ft_mr);

    ft_mr.style.width='';tdmdl_l.style.width="100%";

    ft_mr.containerElement.appendChild(chat_layout_online);



    REPLACE IT WITH Below script:

    //MIDDLE

    var tdmdl_l=trmdl.insertCell(-1);

    var tdmdl_r=trmdl.insertCell(-1);

    var ft_ml=BuildFrameTable("#ffffff");

    tdmdl_l.appendChild(ft_ml);

    ft_ml.containerElement.appendChild(chat_layout_message);

    var ft_mr=BuildFrameTable("#ffffff");

    tdmdl_r.style.width="180px";

    tdmdl_r.appendChild(ft_mr);

    ft_mr.style.width='';

    if(document.all)

    {

    tdmdl_l.style.width=document.body.clientWidth-190+"px";

    }

    else

    {

    tdmdl_l.style.width=window.innerWidth-190+"px";

    }

    ft_mr.containerElement.appendChild(chat_layout_online);
     
    If this didn't work, let me know and I will take another look into what I did to fix the sizeproblem. I have made a lot of changes, but I think basicly this is what needs to be done.
     
    Brgds
  •  04-29-2005, 12:27 PM 6308 in reply to 6294

    Re: custom (fixed) width

    Maybe you could try put the page into a IFrame . I think this would be better to implement .
     
    Regards , Terry .
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.