DraggablePanel using ResizeTransformer goes below the screen and is half hidden. #21
Comments
Can you upload a video or screenshot with your problem? |
It's because getMinHeightPlusMargin() in ResizeTransformer return different value than dimensions for ResizeTransformer from my form works OK but resizeFactor work different than in original library |
How do i fix it..? |
I'm sure @pedrovgs will fix it very quick you can edit getMinHeightPlusMargin() to return the same value that is calculatet vile dragging I think it will be: return (int) ((getOriginalHeight()* (1/getYScaleFactor())) + getMarginBottom()); but I'm not sure |
@Amritpal33 I'd like to review your problem, could be related to other changes not just with getMinHeightPlusMargin method. Can you upload one video or one screenshot reproducing your bug? I'm working to fix one issue related to the horizontal drag effect, issue #20 . Can you review if this branch: https://github.com/pedrovgs/DraggablePanel/tree/fix-horizontal-drag-problems fix your problems? |
Hi Pedrovgs, |
You might close this bug now? I need to integrate that fix and I'm waiting for a pull request of @Fiddl3 xD |
I'll create new branch with fixes related to ResizeTransformer and send you a pull request. |
Please, create different branches for different fixes. One to fix video view position using resize transformer, other to support landscape mode. Create your branches from the development tip. To fix video view position you can change every variable related to video view position or size to int instead of use floats. |
I think I already hanged all variables to int, except for scaleTransformer, but I will review this again... |
hahaha, good luck with your project! I'll wait for your PR. Thanks! 2014-12-04 22:09 GMT+01:00 Fiddl3 notifications@github.com:
|
@Fiddl3, @Amritpal33 I've found and fix the bug with VideoView and Resize transformer \o/. Thanks to some help of @Fiddl3 !!! Can you check if it's working fine to you and your applications? I'd like to release this fix to maven central this weekend. You have the code in this branch: https://github.com/pedrovgs/DraggablePanel/tree/fix-video-view-sample-problems |
It'll not work... I'll update my for (ResizeTransformer_fix branch) with all fixes (without changing a scaleFactor implementation) then send you a pull request later today. I still think that my scaleFactor implementation is better, but I don't know how many devs are using this library, and how many apps we "broke" when we will change this in maven central.... ergo lets leave this as is. |
Ok @Fiddl3, I'll wait for your PR. But compile and check that branch. The sample project is working fine without take into account the right margin. |
It's not working, look at the right side on the minimized dragView when you use |
This is a screenshot of video sample in a Nexus 5 -> https://drive.google.com/file/d/0B9xkpTnF9BXjZHh0Q2NBRi1TZkU/view?usp=sharing And this in a Samsung Galaxy S3 -> https://drive.google.com/file/d/0B9xkpTnF9BXjOXZXQkRQM0F3X1U/view?usp=sharing Vertical drag is also working :) |
There is no way for this to work ok... look in to When you use finger to move view it'll work OK, but when you minimize it using |
Here you have a video where the VideoView is released and https://drive.google.com/file/d/0B9xkpTnF9BXjRzdQVU9fdEd5Z2s/view?usp=sharing |
@Fiddl3 's pull request has been merged. I'm going to release a new version today :) |
Hi,
I am using Draggable panel and resizing feature to play videos. The issue is when i minimize the panel, it is half hidden in the screen and does not close to left or Right in minimize state.
Please Look into the issue.
The text was updated successfully, but these errors were encountered: