[Libreoffice-commits] online.git: Changes to 'private/pranavk/toolbar'

Pranav Kant pranavk at collabora.com
Thu May 26 07:43:53 UTC 2016


New branch 'private/pranavk/toolbar' available with the following commits:
commit bdaaf7a25a0249431b2c762f1dba97da6922a09e
Author: Pranav Kant <pranavk at collabora.com>
Date:   Wed May 25 23:36:57 2016 +0530

    loleaflet: Rework toolbar resize; fix an infinite loop
    
    Set the min-width of window to 600px so that all select list
    boxes remain in main toolbar, and not go in toolbar-more.
    
    While resizing the toolbar, if the user tries to reduce the
    window width past the min-width set, we would run into an
    infinite loop causing spike in browser CPU usage and eventually
    crash. This used to happen earlier also before setting this
    min-width with very small browser window size.
    
    Change-Id: I64fb0a9d7761f66701bc0e020d1dbad9e4defe29

commit a286d586e7d41939b302392c02b37494a12e2e52
Author: Pranav Kant <pranavk at collabora.com>
Date:   Thu May 26 00:12:08 2016 +0530

    loleaflet: Init font/back color on refresh
    
    When these buttons are moved from toolbar-up to up-more and then
    back they are not initialized.
    
    Change-Id: Idc8c342092f723c3e50308988f8b2c070e0c08ad

commit 9929ef956038ea29dff2880aee2caec3692a305c
Author: Pranav Kant <pranavk at collabora.com>
Date:   Thu May 26 00:14:43 2016 +0530

    loleaflet: Check if clicked item is in toolbar-up-more
    
    Change-Id: I8758f0195fcc9a2676597637c11efc9476d5093b

commit 01ddeaffafad90a604bf49c8e6eac98b5e8c4800
Author: Pranav Kant <pranavk at collabora.com>
Date:   Wed May 25 23:33:04 2016 +0530

    loleaflet: Clean-up toolbar; fix en/dis-able button states
    
    Use an object to keep track of enabled/disabled state of buttons.
    This also prevents us looping all the format buttons everytime a
    commandstatechanged is received, so better algorithmic
    complexity.
    
    For sessions in view-only mode, keep storing the state of these
    buttons in this object, and use the stored states to
    enable/disable buttons when edit lock is taken.
    
    While enabling/disabling the toolbar buttons, also check in
    toolbar-more.
    
    Change-Id: I6555fde6669e1a8ba349c3213280a627a05d80b7



More information about the Libreoffice-commits mailing list