Subscribe to RSS
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. I'm trying to use this plugin to crop images on my website. However, I don't see how to force an exact fit of the cropper container to the format of my images. There is always a space at the left and right of the image that can be cropped on :. The cropper-wrap-box seems always slightly larger than the cropper-canvas one. This lead to allow crop outside of the image which is what I don't want. Thanks for your reply, but I'm sorry to say this still does not work. Whatever the format of my image is, square, greater height or greater width, there is always these borders on left and right. Hi, I found a workaround for the unwanted spaces by increasing the size of the copper container with the same ratio. This is still not a fix for me as I am not sure how it will behave on smaller screens. However I had other issues with negative coordinates -1;-1 for the crop top left coordinate when the selection is stretched to the borders. Had to handle it server side to force it to 0. Probably you don't need this anymore, but I was working on a project which integrate this library and dropzone. In my case, I needed to set a fixed values for width px and height px properties, for make sure the image is not too large and ruin my layout. First thing I do is to get the size width and height of the original image. Please how to fix it fengyuanchen. ViewMode 3 and aspect ratio seems to have an impact on how the image fills the canvas. Most others seem to not do much at all. In coropper. I just edited the cropper. Make sure your surrounding divs are not restricting the width of the inner divs. Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up. New issue.
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Becouse my modal height getting long when i load big image in modal. It doesn't work in my code. It is very annoying that the height of the container is always equal to the original height of the image even when the image is downsized by setting a max-width on the container. Steps to use Cropper: 1 - Check if the original image is displayed correctly in its place? Go to 3. Regulate the image to fit your expectation. Took me a few hours to finally figure out the solution. Turns out its something extremely simple. Fixes the problem instantly. For example:. The problem is from us, NOT from the author of the plugin. In order to control the height of the container, we need to make the image itself responsive to fit the image to the size of its parent container. Once the image is responsive, the height of the container automatically conforms to the height of the image. If you are using cropper in a modal after uploading it using form and having this problem, here is the solution: give image max-height of some fixed pixel like px. I use with typereact. It work for me. Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up. New issue. Jump to bottom. Copy link Quote reply. This comment has been minimized. Sign in to view. Were you able to solve this issue? This was referenced Dec 10, Unable to control the max height of the container. Canvas height too long This still an issue and very annoying I don't understand how this issue was closed The only way that you can solve it is adding a parent div with a fixed height or a max height. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window.
This will help you spend your resources efficiently, without wasting any time either looking down at the keyboard or introducing unnecessary and time-consuming mouse movements to the production process. Although not as precise or useful, you can also assign location-based hotkeys using the F5-8 keys. Just hold down Control when you're at a location you want to remember and hit one of the available F keys.
This way you'll be able to tap on the key whenever you're somewhere else, and come whizzing back into view. Control Groups are another vital element of playing StarCraft 2 competitively.
Entire guides could be written on the subject, but for the purposes of our beginner's guide we're going to give you a basic overview. We'll expand on this section if the guide proves popular. Put simply, Control Groups allow you to assign units and structures - individually or as groups - to the 0-9 keys, which in turn allows you to very quickly jump to whatever area of the game you need to oversee immediately.
You might want to keep tabs on a scout you've sent patrolling for example, jump quickly back to your base to check on your resource situation, or just keep the factory lines rolling with new production orders. To assign a unit to a Control Group, simply select it, then hold down Ctrl and 0-9. To add additional units to that same group, select them and then hold down Shift and the number in question. It's a bit fiddly at first, but you' will'll get used to it quite quickly.
This will add all of the units of that type that are currently visible on-screen to the selection. You can also hold down Ctrl and click one of the target units to achieve the same result. Remember that a double-tap will zip the screen right over to the item you've assigned. This will allow you to quickly zip over and find out what they've uncovered about the enemy's plans.
This lets you get back to base quickly to check on the state of production and resource gathering. This will allow you to keep production rolling rapidly, without you having to revisit the base. Simply select the group then choose your production option using the hotkey options. That way if they run into trouble you can quickly jump over there and undertake some vital Micro work, or just ensure they live to fight another day by cleanly running away.
Having these units on groups also means that if you send out an attacking force yourself, you don't have to anxiously babysit them the whole way there, when you could be doing something more productive. Here are some general tips and tricks that the starting StarCraft 2 player would be well advised to take on board.
This will allow you to assign multiple units to the same shortcut, which you can then easily switch between to stay on top of the action taking place right now. If you have access to the single player mission content, we actually recommend playing through the campaign using your preferred hotkeys and control groups. Take our challenge and advice here: from your first multiplayer game onwards, select nothing with your mouse. You'll suffer for it in your early games, but will be highly incentivised to get on top of things much more quickly.
Pain is a great teacher, after all. Do not spend too much time playing against the computer when you first fire up StarCraft 2. By all means rattle off a couple of AI matches to get used to the basics of playing from a fresh start, but you have nothing to lose and everything to gain by getting stuck into matches against real-life opponents.
Yes you're going to lose a few at first (read: a lot), but you will learn so much more this way.