Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: After restoring the tab it hides a few area of the article from the top. #3743

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

MohitMaliFtechiz
Copy link
Collaborator

Fixes #3741

  • It was showing with the top margin we have set in TabsAdapter for not showing the top margin in tabs, and tempWebViewForUndo saved with that margin, so when we are showing this in our reader, it was showing with that margin. So to fix this we are removing this margin from the tempWebViewForUndo if tabSwitcher is not showing, for properly showing the webView content. If the tab switcher is showing it will work as before.
  • Used the safelyAddWebView method when we were selecting the tab as this method is doing the same that we are doing in selectTab method so to reduce duplicate code we used this method.
Before Fix After Fix
TabsIssueWhileUndo.mp4
TabIssueFix.mp4

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 52.25%. Comparing base (cdf4a01) to head (3366b4b).
Report is 4 commits behind head on main.

❗ Current head 3366b4b differs from pull request most recent head 060e410. Consider uploading reports for the commit 060e410 to get more accurate results

Files Patch % Lines
.../kiwix/kiwixmobile/core/main/CoreReaderFragment.kt 20.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #3743   +/-   ##
=========================================
  Coverage     52.24%   52.25%           
- Complexity     1270     1272    +2     
=========================================
  Files           292      292           
  Lines         10977    10975    -2     
  Branches       1454     1451    -3     
=========================================
  Hits           5735     5735           
- Misses         4286     4288    +2     
+ Partials        956      952    -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kelson42
Copy link
Collaborator

@MohitMaliDeveloper Sorry but it seems the CI for 33 is still unstable... or broken?

…m the top.

* It was showing with the top margin we have set in `TabsAdapter` for not showing the top margin in tabs, and `tempWebViewForUndo` saved with that margin, so when we are showing this in our reader, it was showing with that margin. So to fix this we are removing this margin from the `tempWebViewForUndo` if `tabSwitcher` is not showing, for properly showing the webView content. If the tab switcher is showing it will work as before.
* Used the `safelyAddWebView` method when we were selecting the tab as this method is doing the same that we are doing in `selectTab` method so to reduce duplicate code we used this method.
@kelson42 kelson42 merged commit f7a34c1 into main Mar 14, 2024
8 checks passed
@kelson42 kelson42 deleted the Fix#3741 branch March 14, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After restoring the tab it hides a few area of the article from the top.
3 participants