[CLOSED] Error after update from SVN

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Error after update from SVN

    Hi!

    After update from SVN, uri: http://svn.ext.net/premium/branches/2.1/, I'm get this error in my application:
    Click image for larger version. 

Name:	error after update SVN - 1.png 
Views:	90 
Size:	33.8 KB 
ID:	4644


    Expanding the 'c' object, is a gridview.
    Click image for larger version. 

Name:	error after update SVN - 1.1.png 
Views:	74 
Size:	17.9 KB 
ID:	4643

    I'm creating my gridPanel in client side (javascript)
    Last edited by Daniil; Dec 29, 2012 at 7:46 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Unfortunately, we have no idea what can cause this error.

    Could you provide a sample? We would do our best to investigate.
  3. #3
  4. #4
    Good, thanks for sharing!
  5. #5
    Daniil!

    Sorry... The problem still occurs

    I'm don't achieving make a sample where the problem occurs.

    I gathered the following data about this error:

    1 - Occurs only when the gridPanel 'hideHeaders' config property is set with 'true'.
    2 - In my sample project, DON'T occurs... I'm try made more similar possible with my application.
    3 - The code with problem is into ext-all.js:
    b=c.tableContext.getProp("height")
    In the version from SVN/trunk, this code DON'T exist.
    This code is inserted in SVN/Branch/2.1

    4 - In this Forum thread, appears that is problem in ExtJs...
    http://www.sencha.com/forum/showthre...izing&p=871240

    I think the Sencha team is working in solution... When the solution is found,
    When the solution is found, How long to be incorporated into the Ext.net?

    For now, I'm removing the 'hideHeaders' config of my source code.
  6. #6
    Quote Originally Posted by supera View Post
    I gathered the following data about this error:

    1 - Occurs only when the gridPanel 'hideHeaders' config property is set with 'true'.
    2 - In my sample project, DON'T occurs... I'm try made more similar possible with my application.
    3 - The code with problem is into ext-all.js:
    b=c.tableContext.getProp("height")
    In the version from SVN/trunk, this code DON'T exist.
    This code is inserted in SVN/Branch/2.1
    Could you clarify the steps to reproduce? Maybe it could lead us to reproduce the problem.

    Quote Originally Posted by supera View Post
    I think the Sencha team is working in solution... When the solution is found,
    When the solution is found, How long to be incorporated into the Ext.net?
    Very soon.
  7. #7
  8. #8
    Ok, thanks for clarification.

    Unfortunately, I can't reproduce as well.

    Maybe, you could prepare a test project basing on your original one. If yes, please simplify as much as you can and remove any private things. Then send to
    support@object.net

    We will do our best to investigate.
  9. #9
    I was able to reproduce the issue with your project and also unable with a simple page.

    For now, I can suggest the following workaround.

    Workaround
    <script type="text/javascript">
        Ext.grid.ColumnLayout.override({
            calculate: function(ownerContext) {
                var me = this,
                    viewContext = ownerContext.viewContext,
                    tableHeight,
                    viewHeight;
    
                Ext.grid.ColumnLayout.superclass.calculate.apply(this, arguments);
    
                if (ownerContext.state.parallelDone) {
                    ownerContext.setProp('columnWidthsDone', true);
                }
    
                // If we have a viewContext (Only created if there is an existing <table> within the view, AND we are scolling vertically AND scrollbars take up space)
                //     we are not already in the second pass, and we are not shrinkWrapping...
                //     Then we have to see if we know enough to determine whether there is vertical opverflow so that we can
                //     invalidate and loop back for the second pass with a narrower target width.
                if (viewContext && viewContext.tableContext && !ownerContext.state.overflowAdjust.width && !ownerContext.gridContext.heightModel.shrinkWrap) {
                    tableHeight = viewContext.tableContext.getProp('height');
                    viewHeight = viewContext.getProp('height');
    
                    // Heights of both view and its table content have not both been published; we cannot complete
                    if (isNaN(tableHeight + viewHeight)) {
                        me.done = false;
                    }
    
                    // Heights have been published, and there is vertical overflow; invalidate with a width adjustment to allow for the scrollbar
                    else if (tableHeight >= viewHeight) {
                        ownerContext.gridContext.invalidate({
                            after: function() {
                                ownerContext.state.overflowAdjust = {
                                    width: Ext.getScrollbarSize().width,
                                    height: 0
                                };
                            }
                        });
                    }
                }
            }
        });
    </script>
    I will monitor the Sencha thread. By the way, I did an update in this thread.
    http://www.sencha.com/forum/showthre...624#post873624
  10. #10
    Daniil, you are the guy!!!

    Your workaround works very fine...

    Thanks a lot for your help!!!
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Error after update from SVN
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 16
    Last Post: Aug 06, 2010, 4:13 PM
  2. [CLOSED] Error After Update From SVN
    By dev in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 30, 2010, 1:56 PM
  3. [CLOSED] another SVN update error
    By skyone in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jul 23, 2010, 5:07 PM
  4. [CLOSED] error after update
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Mar 31, 2009, 1:09 PM
  5. [CLOSED] error after last update
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 05, 2009, 6:49 AM

Posting Permissions