Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: [Ver 1.1] Ext.ux.Calculator

  1. #11
    Ext User
    Join Date
    Aug 2007
    Posts
    4
    Vote Rating
    0
      0  

    Default A bug in 1.3 in Opera

    There is a bug in calculator which appears in opera, in line 70:

    Code:
    var row = this.stTable.createChild({tag: 'tr'}).child('tr');
    You mean the "tr" element, so I don't know what is the child() for. I don't know also why does it work in FF/IE, but in Opera it doesn't. The fix for all browsers is:

    Code:
    var row = this.stTable.createChild({tag: 'tr'});

  2. #12
    Sencha Premium Member tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    374
    Vote Rating
    14
      0  

    Default

    Quote Originally Posted by l0co View Post
    There is a bug in calculator which appears in opera, in line 70:

    Code:
    var row = this.stTable.createChild({tag: 'tr'}).child('tr');
    You mean the "tr" element, so I don't know what is the child() for. I don't know also why does it work in FF/IE, but in Opera it doesn't. The fix for all browsers is:

    Code:
    var row = this.stTable.createChild({tag: 'tr'});
    Thanks l0co. I haven't done a calculator release for some time. I'll add it too my ever growing list of things to do

  3. #13
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Toby,

    any chance you would port this calculator to Ext 2.0 NumberField plugin and that you'd add priority of operations (1+2*3=7, not 9)?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  4. #14
    Sencha Premium Member tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    374
    Vote Rating
    14
      0  

    Default

    Quote Originally Posted by jsakalos View Post
    Toby,

    any chance you would port this calculator to Ext 2.0 NumberField plugin and that you'd add priority of operations (1+2*3=7, not 9)?
    Hi Saki,

    It's not high up on my list of things to do. I wrote it for a large project that is using Ext1.x. When I move the project to Ext2 I will do the port. Can't say when that will be however.

  5. #15
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Ok, thanks for info. It's not very high also on my priority list to have the calc so no problem.

    Cheers,
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  6. #16
    Sencha User
    Join Date
    Aug 2007
    Posts
    64
    Vote Rating
    0
      0  

    Thumbs up bug in calculation

    Hi, calculator seem to be a nice feature that i plan to use

    A little calculation bug you can see in demo page :
    7
    *
    2.1
    =
    14.700000000000001

  7. #17
    Sencha Premium Member tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    374
    Vote Rating
    14
      0  

    Default

    For anyone that's interested I've made a more Ext'ish style for the calculator.

    PHP Code:
    .ux-calc {
        
    background#C7D8ED;
    }
    .
    ux-calc-container {
        
    border1px solid #718BB7;
    }
    .
    ux-calc-container .ux-calc-btn-row td {
        
    font-familytahomaarialhelveticasans-serif;
        
    font-size10px;
        
    line-height18px;
        
    border1px solid #8DB2E3;
    }
    .
    ux-calc-digit, .ux-calc-equals {
        
    font-weightbold;
    }
    .
    ux-calc-operator, .ux-calc-equals {
        
    colorblue;
    }
    .
    ux-calc-memory {
        
    color#1E3B72;
    }
    .
    ux-calc-memstore {
        
    border1px solid #8DB2E3 !important; 
        
    background-color#D1D1D1;
    }
    .
    ux-calc-btn-hover {
        
    background#8DB2E3;
        
    cursorpointer;
    }
    .
    ux-calc-input {
        
    text-alignright;
    }

    .
    ux-calc-misc { }
    .
    ux-calc-ok {
        
    padding-top:5px;
        
    padding-bottom:5px;
        
    border-top1px solid #8DB2E3; 

    Attached Images Attached Images

  8. #18
    Sencha User
    Join Date
    Jan 2008
    Location
    China
    Posts
    3
    Vote Rating
    0
      0  

    Default

    thanks for your sharing,
    I want use it,but I use EXT2...
    I think this migrate to EXT2.0 is better.

  9. #19
    Ext User
    Join Date
    Apr 2008
    Posts
    1
    Vote Rating
    0
      0  

    Question Using it in a Window

    Hello friends...

    I would like to use this wonderful calculator in a Window, can I? How I do it?

    Greetings!

    ...Sorry for my English, I am Brazilian :-)

  10. #20
    Sencha Premium Member tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    374
    Vote Rating
    14
      0  

    Default

    @j_butterfly - no support for Ext2. Wouldn't be difficult to port though I havent the time at the moment.

    @andreydjason - do you mean an Ext2 window? If so, see message above. No support for Ext2 at the moment.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •