Comments (7)
Should be fixed in v.0.6.2. Please check and give me a hint if it works for you.
Thanx
from angular2gridster.
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.
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.
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.
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.
Thanks for info. I will fix it as soon as possible.
from angular2gridster.
Yes, it works! Thank you very much!
from angular2gridster.
Related Issues (20)
- emitter for currently selected or clicked or active gridster item
- ERROR on creating gridster inside mat tab group
- npm start not working after installation of code HOT 5
- reloading grids sometimes makes heights size 1
- Provide service using { providedIn: 'root' } HOT 1
- Error when deploying angular 9 app to dev server (My bad)
- Angular 11 support HOT 2
- Angular 12 Support? HOT 1
- How to load the grid without dragAndDrop and Resize
- widget width not increase, need help
- When I use draggableOptions,I think have an ignoreContentClass option maybe is better?
- Angular 13 support HOT 1
- Can't bind to config
- Fix peerDependencies HOT 4
- Question: Is this project abandoned?
- Resizing from the top does not update the position until finished.
- Resizing does not correctly scroll when the scroll container is the body
- Focus and reading order is not as per the visual order
- Clicking and dragging the horizontal/vertical scroll bar no longer works
- There is a minute gap between 2 gridster Item even though margin set as zero and the gap is not consistent in all the items. How to resolve this gap issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2gridster.