Auto adjusting height in Chrome

Last post 02-11-2011, 2:18 AM by mmargeta. 11 replies.
Sort Posts: Previous Next
  •  10-02-2010, 5:55 AM 64307

    Auto adjusting height in Chrome

    Hi,
     
    I think that auto adjust height in Chrome is not working while typing text, both PC and MAC versions of Chrome. It calculates fine on load, but on every keypress it resizes a CuteEditor area for one line. (I have tried a new downloaded demo also).
     
    Is there anything known about this? Any workaround? And if I change "AutoAdjust" option to "PlusMinus" is there a way to execute autoadjusting on load time?
     
    TNX!
     
    Regards,
    Marko 
    Filed under:
  •  10-25-2010, 3:44 PM 64684 in reply to 64307

    Re: Auto adjusting height in Chrome

    Marko,
     
    I tested the following example using Chrome in PC.
     
     
    It works fine.

    Can you try it and get back to me?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-25-2010, 3:44 PM 64685 in reply to 64307

    Re: Auto adjusting height in Chrome

    Marko,
     
    I tested the following example using Chrome in PC.
     
     
    It works fine.

    Can you try it and get back to me?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-25-2010, 3:44 PM 64686 in reply to 64307

    Re: Auto adjusting height in Chrome

    Marko,
     
    I tested the following example using Chrome in PC.
     
     
    It works fine.

    Can you try it and get back to me?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-27-2010, 10:28 AM 64727 in reply to 64686

    Re: Auto adjusting height in Chrome

    Hi Adam, sorry for delay, I didn't receive any remainder by email... but never mind. Unfortunately, that is not working for me using Chrome (Mac or PC-win7)... FF, IE, Safari works ok on same comps. I'm using that option in our system and usually force users to work with FF, but every day I like Chrome more... much faster with javascript.
     
    I'm sending you some pics to see...
    1. on opening
     
    2. just enter "123" and get 3 blank lines (window is larger for 3 lines)
     
    3. delete "123"  ... window is larger for 3 more lines
     
     
    On PC (win7) - Chrome 7.0.517.41
    On Mac (OS X 10.6.4) - Chrome 7.0.517.41
     
    If you have any idea... shoot, I would like to help you... we can connect via teamviewer or else... I saw that this post has many views but I didn't get any replies about the same problem happening to someone else. I don't think that every Chrome I tried is bad (tried on 3 win7 Chrome and 1 OS X 10.6 Chrome)... didn't try on XP. 
  •  10-27-2010, 10:32 AM 64728 in reply to 64727

    Re: Auto adjusting height in Chrome

    Something wrong with screen shoots... so, once again...
     (Screen shot 2010-10-27 at 5.05.33 PM.png)
     (Screen shot 2010-10-27 at 5.05.44 PM.png)
     (Screen shot 2010-10-27 at 5.05.52 PM.png)
  •  10-27-2010, 10:37 AM 64729 in reply to 64728

    Re: Auto adjusting height in Chrome

    Sorry... spaces....
     
     
     
    Regards,
    Marko 
  •  11-22-2010, 9:50 AM 65115 in reply to 64729

    Re: Auto adjusting height in Chrome

    Workaround help please... 
     
    If I change "AutoAdjust" option to "PlusMinus" is there a way to execute autoadjusting on load time, so when author wants to edit content first gets the autoadjusted height and then can choose plus or minus during editing... that could work fine in Chrome.
     
    TNX.
     
    Regards,
    Marko 
  •  11-22-2010, 12:59 PM 65117 in reply to 64307

    Re: Auto adjusting height in Chrome

    Dear mmargeta,
     
    Please try the following code:
     
    <?php include_once("cuteeditor_files/include_CuteEditor.php") ; ?>
    <html> 
        <head>  
        </head>
      <body>
     <form name="theForm" action="Get_HtmlContent.php" method="post">    
          <br />
          <?php
                $editor=new CuteEditor();
                $editor->ID="Editor1";
                $editor->Text="This is some more test text.<br>This is some more test text.<br>This is some more test text.<br>This is some more test text.<br>This is some more test text.<br>This is some more test text.<br>This is some more test text.<br>";
                $editor->ResizeMode = "PlusMinus";
                $editor->Height=355;
       $editor->AutoConfigure = "Simple";
                $editor->Draw();
                $editor=null;           
                //use $_POST["Editor1"]to retrieve the data
            ?>
      </form>
     </body>
    </html>
     
    Thank you for asking
  •  12-02-2010, 3:18 AM 65231 in reply to 65117

    Re: Auto adjusting height in Chrome

    Hi Eric,
     
    thanks for your reply. The upper code from you is ok, but not what I had in mind. I will try to be more specific.
     
    What I'm trying to achieve is when the user is loading the page with editor and with some content (that can be empty or pretty big) to show editor autoadjusted to content - not on some specific height. So if the content is empty to show editor on some specific height, but if the content is large, to show editor adjusted to content. I would just like to perform an autoadjust function after the editor is displayed (with PlusMinus).
     
    Something like this:
    <?php
       $editor=new CuteEditor();
       $editor->ID="Editor1";
       $editor->Text="Something...";
       $editor->ResizeMode = "PlusMinus";
       $editor->Height=355;
       $editor->AutoConfigure = "Simple";
       $editor->Draw();
       $editor=null;
       //autoadjust editor
       some_autoadjustheight_editor_function(); 
    ?>
     
    So, the point is to show the whole content of editor on load time - without vertical scrollbars. And if the client wants to make it bigger or smaller editor has a PlusMinus functionality to achieve that. Because I'm trying to find some workaround for AutoAdjust function.
     
    But the other thing that worries me is how the AutoAdjust works for you in your Chrome and does not work in every other Chrome I tried!?!?
     
    Regards,
    Marko 
  •  01-18-2011, 1:48 PM 65773 in reply to 64686

    Re: Auto adjusting height in Chrome

    Adam:
    Marko,
     
    I tested the following example using Chrome in PC.
     
     
    It works fine.

    Can you try it and get back to me?
     
    Adam, I have tried your example today in Chrome and it works fine... what have you changed in the meantime (because, when I tried it before - it wasn't ok)? I have downloaded the fresh version from site but that example is not working in Chrome in this downloaded demo. Can you provide us all with this patch?
     
    Regards,
    Marko 
  •  02-11-2011, 2:18 AM 66168 in reply to 65773

    Re: Auto adjusting height in Chrome

    Well, the info would be nice - but the main thing is that the problem is solved!!!
    So - if anybody have issues with auto adjusting height in Chrome - just download the new version of your loving php html editor. 
     
    Kind Regards to developer team,
    Marko 
     
     
View as RSS news feed in XML