Skip to content

IDLE: Completion window misplaced when shown above current line #82030

Closed

Description

@taleinat
BPO 37849
Nosy @terryjreedy, @taleinat, @miss-islington
PRs
  • bpo-37849: IDLE: fix completion window positioning above line #15267
  • [3.8] bpo-37849: IDLE: fix completion window positioning above line (GH-15267) #15282
  • [3.7] bpo-37849: IDLE: fix completion window positioning above line (GH-15267) #15283
  • Files
  • idle_completion_window_position.png
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/terryjreedy'
    closed_at = <Date 2020-09-19.19:22:07.434>
    created_at = <Date 2019-08-14.06:40:49.632>
    labels = ['3.8', 'expert-IDLE', 'type-bug', '3.7', '3.9']
    title = 'IDLE: Completion window misplaced when shown above current line'
    updated_at = <Date 2020-09-19.19:22:07.434>
    user = 'https://github.com/taleinat'

    bugs.python.org fields:

    activity = <Date 2020-09-19.19:22:07.434>
    actor = 'taleinat'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2020-09-19.19:22:07.434>
    closer = 'taleinat'
    components = ['IDLE']
    creation = <Date 2019-08-14.06:40:49.632>
    creator = 'taleinat'
    dependencies = []
    files = ['48541']
    hgrepos = []
    issue_num = 37849
    keywords = ['patch']
    message_count = 7.0
    messages = ['349652', '349654', '349657', '349662', '349717', '349719', '349722']
    nosy_count = 3.0
    nosy_names = ['terry.reedy', 'taleinat', 'miss-islington']
    pr_nums = ['15267', '15282', '15283']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37849'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Activity

    1. taleinat commented on Aug 14, 2019

      @taleinat
      ContributorAuthor

      When the current line is near the bottom of the shell window, the completions list will be shown above it. However, instead of appearing directly above the current line, it appears quite a bit higher, about one line too high. See attached screenshot.

      Seen on Windows 10 with current master (2a570af).

      First brought up by Terry Reedy in a comment on PR #59374 [1].

      [1] #15169 (comment)

    2. added
      3.7 (EOL)
      3.8 (EOL)
      3.9 (EOL)
      on Aug 14, 2019
    3. taleinat commented on Aug 14, 2019

      @taleinat
      ContributorAuthor

      See PR #59472 with a fix.

    4. terryjreedy commented on Aug 14, 2019

      @terryjreedy
      Member

      What I reported is that it is too low on my Windows system, with my size and font, mostly covering the line. Anyway, misplaced before, now perfectly placed.

      Now that I see the patch, I seem to remember another place what an update call is needed before gathering window information.

      Unless you say differently, I will add idlelib/NEWS.txt item tomorrow and merge.

    5. taleinat commented on Aug 14, 2019

      @taleinat
      ContributorAuthor

      Unless you say differently, I will add idlelib/NEWS.txt item tomorrow and merge.

      I've added an idlelib/NEWS.txt entry to the PR. Feel free to merge.

    6. terryjreedy commented on Aug 14, 2019

      @terryjreedy
      Member

      New changeset 71662dc by Terry Jan Reedy (Tal Einat) in branch 'master':
      bpo-37849: IDLE: fix completion window positioning above line (GH-15267)
      71662dc

    7. miss-islington commented on Aug 14, 2019

      @miss-islington
      Contributor

      New changeset 557802d by Miss Islington (bot) in branch '3.8':
      bpo-37849: IDLE: fix completion window positioning above line (GH-15267)
      557802d

    8. miss-islington commented on Aug 14, 2019

      @miss-islington
      Contributor

      New changeset 88cce7b by Miss Islington (bot) in branch '3.7':
      bpo-37849: IDLE: fix completion window positioning above line (GH-15267)
      88cce7b

    9. added
      type-bug
      on Sep 19, 2020
    10. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)3.8 (EOL)3.9 (EOL)topic-IDLEtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions