Coder Social home page Coder Social logo

Comments (7)

swiety85 avatar swiety85 commented on August 16, 2024 1

Should be fixed in v.0.6.2. Please check and give me a hint if it works for you.
Thanx

from angular2gridster.

swiety85 avatar swiety85 commented on August 16, 2024

Hi, which version of Angular2gridster are you currently using? I've fixed one similar problem already. This fix is available in v.0.6.0.

from angular2gridster.

michaelgira23 avatar michaelgira23 commented on August 16, 2024

Ah, I was indeed using v0.5.3 before. After upgrading to v0.6.X, the highlight does work the first time, but doesn't work any other time until you refresh the page.

Also, this may or may not be related, but after upgrading to v0.6.X dragging any new module will not put it in the highlighted position. Instead, it will change the x and y values to the first available space (Ex. drag it towards the middle but places it in the top-leftmost corner). The component is changing the x and y position, as getting rid of the two-way binding keeps the x and y coordinates the prototype was dropped on. I saw there were quite a few changes in v0.6.0 so forgive me if this is a configuration error on my part.

Additionally, resizing a gridster item doesn't seem to work in v0.6.X. When resizing, it seems to make the height and width both 0px.

Despite these issues angular2gridster is a lifesaver and I greatly appreciate your work!

from angular2gridster.

swiety85 avatar swiety85 commented on August 16, 2024

In version 0.6.0 default options were accidentally removed. There is a big chance that this could be the reason of your problem. Try to set explicitly widthHeightRatio (default val should be 1) or better update to v.0.6.1 Yesterday I've made a fix for this.
I'm really glad, that you like it.
In case of any questions or problems, don't hesitate and write.

from angular2gridster.

michaelgira23 avatar michaelgira23 commented on August 16, 2024

Thanks for the response. After playing around a bit, I was able to fix the problems caused from upgrading to v0.6.0/v0.6.1. You're right, I did have to set the widthHeightRatio to 1 in v0.6.0 but that was fixed by upgrading to v0.6.1.

The gridster item resize problem was solved by setting the maxWidth and maxHeight for all items. I just set them both to Infinity like default.

The x/y position change after dragging a prototype onto the grid was fixed by setting responsiveView to either true or false. You must set responsiveOptions to contain breakpoints though, even if you set responsiveView to false.

After upgrading to the latest version (0.6.1), you're able to properly drag the first item onto the grid the first time, but not any other time until refreshing the page. You can replicate this by visiting the demo and setting the .widgetbar to have the following CSS properties:

.widgetbar {
    position: fixed;
    top: 15rem;
    z-index: 100;
}

This should put the widget bar over the grid. If you drag the first item onto the grid, it works as intended. Dragging a second or third item onto the grid will not work and put them grid item on top of the most recently added item. The only way to circumvent this is to drag the item outside the grid bounds, then back in.

from angular2gridster.

swiety85 avatar swiety85 commented on August 16, 2024

Thanks for info. I will fix it as soon as possible.

from angular2gridster.

michaelgira23 avatar michaelgira23 commented on August 16, 2024

Yes, it works! Thank you very much!

from angular2gridster.

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.