Jump to content

ChenHaibin

Members
  • Posts

    201
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by ChenHaibin

  1.  

    Hello Delphi Developer:
     
    Something is wrong in ProgressBarPager.js
     
    When initialized, if the number of records per page is 20, 

     then adjusted to 10, click on the toolbar the number of pages is wrong.

     

     

    Here is the code

     

    -------------------------------------------------------------

     

     

       // private
        // This method handles the click for the progress bar
        handleProgressBarClick : function(e){
            var parent = this.parent,
                displayItem = parent.displayItem,
                box = this.progressBar.getBox(),
                xy = e.getXY(),
                position = xy[0]- box.x,
                pages = Math.ceil(parent.store.getTotalCount() / parent.pageSize),
                newPage = Math.max(Math.ceil(position / (displayItem.width / pages)), 1);
     
            parent.store.loadPage(newPage);
        },

     

     

     

     

    Thank you!

  2. We are using unigui0.94 1024 version.

     

     

    How to change the font size pagecontrol's tab?

     

    In our project,We need to change the font unipagecontrol's tab to 9, but can not be achieved by modifying the tab of the font.

     

    The result in ie10 browser,  the font size of tab set to 9.

    post-364-0-13516400-1390188789_thumb.jpg

     

    The result in the chrome browser

    post-364-0-75079600-1390189266_thumb.jpg

     

    What we need is this result, the font size of tab set to 9.

    post-364-0-75079600-1390189266_thumb.jpg

×
×
  • Create New...