Giter Site home page Giter Site logo

Multi-row not working about tabmixplus HOT 8 CLOSED

onemen avatar onemen commented on July 20, 2024
Multi-row not working

from tabmixplus.

Comments (8)

onemen avatar onemen commented on July 20, 2024

this error is related, since we don't have _scrollbox

Uncaught TypeError: can't access property "scrollLeft", tabstrip._scrollbox is undefined
    afterTabTitleChanged chrome://tabmixplus/content/places/places.js:554
    TMP_onTabTitleChanged chrome://tabmixplus/content/minit/tablib.js:1844
    _setTabLabel chrome://tabmixplus/content/changecode.js line 218 > eval:32
    setTabTitle chrome://tabmixplus/content/changecode.js line 218 > eval:65
    onLocationChange chrome://browser/content/tabbrowser.js:6204

i added this at the top of tabsBindings.js

  // temporary workaround until we fix multi-row feture
  if (!gBrowser.tabContainer.arrowScrollbox._scrollbox) {
    gBrowser.tabContainer.arrowScrollbox._scrollbox = {};
  }

from tabmixplus.

117649 avatar 117649 commented on July 20, 2024

mat be use 'gBrowser.tabContainer.arrowScrollbox.scrollbox'?

tabstrip._scrollbox -> tabstrip.scrollbox

from tabmixplus.

onemen avatar onemen commented on July 20, 2024

I need to work on converting scrollbox.xml to extend MozArrowScrollbox

from tabmixplus.

117649 avatar 117649 commented on July 20, 2024

I need to work on converting scrollbox.xml to extend MozArrowScrollbox

https://bgrins.github.io/xbl-analysis/converter/
This site just come in handy for generate CE from XBL.
Just copy paste XML into left box and you get JS from right box.
You still have to tinker here and there though but its much easier.

Base on how shadow DOM slot works and the constructor of the <arrowscrollbox>:
image(use the first shadow <scrollbox>)
the process could be as much simple as:

  1. once you have the Custom Element ready define it to still use the <scrollbox> tag.
  2. In shadow-root of the <arrowscrollbox> create a instance of your <scrollbox> with a <html:slot> child.
  3. Insert the created <scrollbox> before the original one thus it should automatically replace the older.
  4. Remove the old element.

I leave it untouched when I was converting the tab bindings because I have no idea how multi-row and scroll box binding works.

from tabmixplus.

onemen avatar onemen commented on July 20, 2024

Thank you for the tip @117649, i will look into it later today

from tabmixplus.

117649 avatar 117649 commented on July 20, 2024

I'm sorry, I wasn't quite understand what 'scrollbox.xml' is doing back then thus my advice may be misleading.
Its looks like 'scrollbox.xml' just adding the scroll buttons on the right of tab bar not messing with the <arrowscrollbox>.
I think for that you can just create buttons with js and use the css of <arrowscrollbox>.

Any success on this article?

from tabmixplus.

onemen avatar onemen commented on July 20, 2024

Yes.

I have it working for normal tabs need more work for pinned tabs

from tabmixplus.

117649 avatar 117649 commented on July 20, 2024

Anything I can help with?

from tabmixplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.