Skip Menu |
 

This queue is for tickets about the Curses-UI CPAN distribution.

Report information
The Basics
Id: 111441
Status: new
Priority: 0/
Queue: Curses-UI

People
Owner: Nobody in particular
Requestors: paul.m.tassinari [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-2.698 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="047d7bb04ef01dab09052a3e4529"
Message-ID: <CAGxa8x69U3U9tdU0QVv9qqGeOFN-JwaP4QH6LLPBQa4zk+ktVg [...] mail.gmail.com>
X-Received: by 10.194.52.72 with SMTP id r8mr23594744wjo.148.1453821819462; Tue, 26 Jan 2016 07:23:39 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.698
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 2F29C2402D0 for <cpan-bug+Curses-UI [...] hipster.bestpractical.com>; Tue, 26 Jan 2016 10:23:50 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KpQAktdLnN85 for <cpan-bug+Curses-UI [...] hipster.bestpractical.com>; Tue, 26 Jan 2016 10:23:49 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id E31352400C1 for <bug-Curses-UI [...] rt.cpan.org>; Tue, 26 Jan 2016 10:23:48 -0500 (EST)
Received: (qmail 7940 invoked by alias); 26 Jan 2016 15:23:48 -0000
Received: from mail-wm0-f50.google.com (HELO mail-wm0-f50.google.com) (74.125.82.50) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 26 Jan 2016 07:23:44 -0800
Received: by mail-wm0-f50.google.com with SMTP id n5so136085749wmn.0 for <bug-Curses-UI [...] rt.cpan.org>; Tue, 26 Jan 2016 07:23:43 -0800 (PST)
Received: by 10.28.102.87 with HTTP; Tue, 26 Jan 2016 07:23:39 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+Curses-UI [...] hipster.bestpractical.com
Subject: Bug in Notebook of Curses UI
Return-Path: <paul.m.tassinari [...] gmail.com>
X-RT-Mail-Extension: curses-ui
X-Original-To: cpan-bug+Curses-UI [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WeAZhYlsdyqU3ahxm5dtW12rGLml1PeedBlR3/zQKMU=; b=aacNb6gUSRWA+W2pwR+0tdNu4hRcNsgsz8vNDf4DCdAz18X5PBBXwGAS2IhSa+xTFI uVcynZ9IaqNfJb9DTW83nUDOZMS/qhGcg5ncwIoofceJ7uFlq1cUxHaMFzfHhbuI/9LL zywzQWbb4InBxhslD9VGhlbCQ8Pn2N8Yf3VsIkAN960uVA105YFAW4EkNY0JDsibRPdC V7hL9/mJX3D/S1skJjZA/h+ysjYrMRtuOm/oK76oMLDXEpVoT3PsfGNNyKGmVEwFeKCY DTXtvGyabHZAog3vSXIgRpcStpvupfpED5h9zY361Qna3+AEsTUqQKDWntqVAFZMN+tg okfQ==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=WeAZhYlsdyqU3ahxm5dtW12rGLml1PeedBlR3/zQKMU=; b=LNp0a5oOSib1J241MjJfHXca5glPzkuVb7nXcHalqtGgNrJqrnSyR7UUJVkkz6eBCj GZDK1o9GI+ZDU/xtFNq4rmc6h53CTeNnusULYEGZXb/KczSUPIVH/kfmd4MDQIHPe7Ku Linfr8g5DnTLw1XhKe793I6Fh55icMV4PLpOrE8+mofmt9oIcDBlAN/lKcsWayv/1MUb r1GdN5fpXu6BF4UvPPo2AkGMzSWwTobZhKk2o+8JdMt2J4hg1oJS5wouqjE/9KAFaT0M oRy6/Dig6alYP/QRs2p5B03sLKTO1+0jw4Qz4E52h/CfWHpaRb2NU5QrYm4nUkZl5QkO 8X9A==
Date: Tue, 26 Jan 2016 10:23:39 -0500
X-Spam-Level:
To: bug-Curses-UI [...] rt.cpan.org
From: Paul Tassinari <paul.m.tassinari [...] gmail.com>
X-GM-Message-State: AG10YOTmeUSYezRie+wdBadJfBE1FBuXoXSeYZ/eoxlphZpv0R2LzzGRcmxKjAmihg5w0H8KJej2KDUKiAFWCw==
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1427
Download (untitled) / with headers
text/plain 1.3k
When adding a Notebook widget inside of a Window, I am unable to click on the Notebook Tabs if the parent Window has vertical padding. I verified this by updating the Notebook.pm *Curses-UI-0.9609/lib/Curses/UI/Notebook.pm* .... sub mouse_button1($$$$) { debug_msg; my $this = shift; my $event = shift; my $x = shift; my $y = shift; my $ev_x = $event->{-x}; my $ev_y = $event->{-y}; debug_msg " mouse click at ($ev_x,$ev_y)"; # Focus window if it isn't already in focus. $this->focus if (not $this->{-focus} and $this->focusable); # If click was in the 'tabs' window. if ($ev_y <= ($this->{-border} + $this->{-sbborder} ? 3 : 1)) { # Figure out which page was clicked. .... *Change made:*sub mouse_button1($$$$) { debug_msg; my $this = shift; my $event = shift; my $x = shift; my $y = shift; my $ev_x = $event->{-x}; my $ev_y = $event->{-y}; debug_msg " mouse click at ($ev_x,$ev_y)"; # Focus window if it isn't already in focus. $this->focus if (not $this->{-focus} and $this->focusable); # If click was in the 'tabs' window. *my $noborderMax = 1 + $this->{-parent}->{-ipad} + $this->{-parent}->{-padtop}; my $borderMax = 2 + $noborderMax; if ($ev_y <= ($this->{-border} + $this->{-sbborder} ? $borderMax : $noborderMax)) {* # Figure out which page was clicked. The Tabs work with that change
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1856


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.