Git Product home page Git Product logo

Comments (4)

Reklino avatar Reklino commented on July 28, 2024

@cmichaelgraham I believe so... But from my experience with UI-Grid, you may have to trigger the resize manually. I'd experiment with using the resizing event in angular-resizable to trigger the resize. If you get it working, throw up a codepen here :D

from angular-resizable.

cmichaelgraham avatar cmichaelgraham commented on July 28, 2024

ok. so here's the starting point without using angular-resizable:

the running sample shows the ui grid in a flexbox. it starts out with scrollbars. if you grow the window, it resizes fine. if you then shrink the window, the grid maintains its largest size and scrollbars appear.

here's the repo: https://github.com/cmichaelgraham/ng-ui-grid-flexbox

ui-grid directive is here
app module def is here

i'll work on updating the sample to use angular-resizable next 😄

from angular-resizable.

cmichaelgraham avatar cmichaelgraham commented on July 28, 2024

ok, got the above working without angular-resizable - will circle back to implement a resizing version at some point...

i wrapped the ui grid div in a div that uses flex to grow and made it position relative, then I positioned the ui grid to be absolution with top, left, bottom, and right to 0px (well, right and bottom are 2px, to be honest 😉)

Repo: https://github.com/cmichaelgraham/ng-ui-grid-flexbox
Running sample: http://cmichaelgraham.github.io/ng-ui-grid-flexbox/index.html

from angular-resizable.

waltzonice avatar waltzonice commented on July 28, 2024

@cmichaelgraham - Did you ever get it working with the angular-resizable? This is exactly what I want to do...

from angular-resizable.

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.