Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

PDF reader doesn't fill the space in the add-dialog #368

Open
mayank-shri opened this issue Aug 15, 2023 · 2 comments
Open

PDF reader doesn't fill the space in the add-dialog #368

mayank-shri opened this issue Aug 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mayank-shri
Copy link

Describe the bug
While reviewing cards, when you click on "Open in add-dialog" button, IF IT IS EARLIER SET TO Show Both, Auto-hide Fields , then the add dialog window opens but is restricted to very small space.

To Reproduce
Steps to reproduce the behavior:

  1. Open add dialog, close with option- Show Both, Auto-hide Fields
  2. Review the relevant card, click on Open in add-dialog
  3. Error: doesn't fill the dialog

Expected behavior
Addon should fill the dialog completely instead of:
image

Screenshots
https://github.com/fonol/anki-search-inside-add-card/assets/31794489/813ac908-7116-44aa-8d57-65986c3a6cc5

Environment (please complete the following information):

  • OS: Windows 11
  • Anki version
    - Version ⁨2.1.55 (01caec2a)⁩
    - Python 3.9.15 Qt 5.15.2 PyQt 5.15.5
@mayank-shri mayank-shri added the bug Something isn't working label Aug 15, 2023
@Oomani
Copy link

Oomani commented Sep 24, 2023

I am also having this problem.

image

This is somewhat fixed by changing the layout on the bottom-left to "Both", but the searchpane on the bottom is incorrectly pinned to the bottom of this add-on's window.

image

I also notice this add-on specifically adds a grey bar when adding a note located right below the "Type" and "Deck" drop down menus which covers up part of its own UI.

image

This in and of itself would be fine, however:

(1) the add-on does not scale properly on 1440p resolution. Occurring inconsistently, I can sometimes dramatically increase the UI zoom to remove the scrolling bar on the right or by changing to the "Show Both, auto hide fields" layout, changing the zoom, changing back to "Both", and changing zoom again.

image

(2) when clicking on the top toolbar for the add-on (see [a pre-click]), it wants to first move the right scroll bar all the way down, so the aforementioned gray bar blocks the add-on's own top row of buttons (see [b after click]). I can then only see the bottom rows of pixels of the top row buttons. Only when the right scroll bar is all the way down does any click generate the drop-down menus (see [c after click dropdown]).

[a pre-click]
image

[b after click]
image

[c after click dropdown]
image

I can't find any setting in the config for this grey bar. It only appears when enabling/disabling this add-on and is grey even when the Anki them is set to Day. Another issue seems to be the way the layout is coded for the bottom search pane being pinned to the bottom of that window instead of adaptively shifting with the zoom scale.

Any suggestions? Is there something else conflicting in the config? Or is there a known add-on conflict causing these interactions?

@Abbas-Jawad
Copy link

does this message appear to you too?
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants