Giter Site home page Giter Site logo

Comments (9)

denniserdmann avatar denniserdmann commented on September 15, 2024

Moin Dennis,

i'm not sure, if we can prevent the slider from calculating the wrong width. We had the problem at the optimist-theme too: erdmannfreunde/optimist-theme-bundle#5 (comment)

May you find a general solution, otherwise at least a solution for your case.

from contao-grid-bundle.

dennisbohn avatar dennisbohn commented on September 15, 2024

When I set the column to fixed 640px (see third row) or to "overflow: hidden" the slider calculates the correct width. The problem is, that I want to place the buttons outside the div while I am working with floating widths.

I'll check, if this problem happens with another grid too.

from contao-grid-bundle.

dennisbohn avatar dennisbohn commented on September 15, 2024

Tested it with "Bootstrap für Contao Grid" and had the same problem.

https://test.office.bohn.media/bootstrap.html

from contao-grid-bundle.

dennisbohn avatar dennisbohn commented on September 15, 2024

Giving all columns a width of 100% fixed the problem.

.ce_colStart {
    width: 100%;
}

https://test.office.bohn.media/euf.html

from contao-grid-bundle.

denniserdmann avatar denniserdmann commented on September 15, 2024

Good work. I need to check, if your solution will cause other problems with the grid as there are too many options to keep in mind.

from contao-grid-bundle.

dennisbohn avatar dennisbohn commented on September 15, 2024

Damn, found something that doesnt work anymore when you set the width to 100%. :'(

  • justify-center
  • justify-end

When the boxes grow to 100% the content is still aligned left inside the box. "max-width" seems to work.

.ce_colStart {
    max-width: 100%;
}

https://test.office.bohn.media/euf-maxwidth.html

from contao-grid-bundle.

denniserdmann avatar denniserdmann commented on September 15, 2024

Can you test, if the following fix is working for you aswell? nutshell-framework/assets@fb4f615#diff-0f8c92d97bbd30a26ba8610e3307d91131a6bd37a91efb1edfc23ffabc21fd55R30

from contao-grid-bundle.

dennisbohn avatar dennisbohn commented on September 15, 2024

It works. Thanks!

from contao-grid-bundle.

denniserdmann avatar denniserdmann commented on September 15, 2024

fixed in 1.0.8

from contao-grid-bundle.

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.