| Message ID | 20260119204130.3972647-20-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855400; bh=ZkmFmdP8+SbzUJoQ2D7OrQFFW3jrF6c1ISOB3Xsf0QE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=C9UFvfcxESeqeafaOKmCdUWHrOgkuPBpV5udN3DlvTN5V7iIQ9q+ELtjF73ZLVQqL 21PJTuIWkl/xNHK8SnybL6S3rvk3xKco1H2RGJqmnGqRPTsCeishEgDTRmub2Q0QJk cZe4GSjAglV9jBSNpIGcwckjT4wU0iAMUd+vve5u4TwZzXh7dq4KfodKYQ88P8uguF mfUDTodTktyj2AaplcEnjg5AX8ViqXZrO+s1iykwNbMR06wfZVPYiCKr9ZVyF5MgtX n6nR9fTiRXEVKPBpfMHB/V7Ox7/IAqYZIbmCz3Bgs+VKMpDNR4BSc8ziRDTZo0addc vuNO2FBm51NQQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BD76B69519 for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 13:43:20 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id thPLlIz_-EvN for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 13:43:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855400; bh=ZkmFmdP8+SbzUJoQ2D7OrQFFW3jrF6c1ISOB3Xsf0QE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=C9UFvfcxESeqeafaOKmCdUWHrOgkuPBpV5udN3DlvTN5V7iIQ9q+ELtjF73ZLVQqL 21PJTuIWkl/xNHK8SnybL6S3rvk3xKco1H2RGJqmnGqRPTsCeishEgDTRmub2Q0QJk cZe4GSjAglV9jBSNpIGcwckjT4wU0iAMUd+vve5u4TwZzXh7dq4KfodKYQ88P8uguF mfUDTodTktyj2AaplcEnjg5AX8ViqXZrO+s1iykwNbMR06wfZVPYiCKr9ZVyF5MgtX n6nR9fTiRXEVKPBpfMHB/V7Ox7/IAqYZIbmCz3Bgs+VKMpDNR4BSc8ziRDTZo0addc vuNO2FBm51NQQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id ABA6E69504 for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 13:43:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855399; bh=/WPR+yVkHLKdwv+pnrQL2lUwqgz3iT2tmT3lzNaMl/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BN9OZQlcSvkrSmUnKSuHsqAk2Klj+yf0TcXdNA0YzPkby22TPgo6YisLMSywogKQC UvwVGWX/OXAp6bh+MK8Zo07DALw9DPui/VrD/QG5K22h1cDG3/mcL1fQpMAy/cxXVK Zcn+thd6/w911MKWIKlo8i8M9aozi5fAdBGpZNbSz9vt8CLZMB2at13IU+cNzKN/iI FYggHGreVPjhN0b7xj9XL4aMbnUNsM124InRdMJhSDyzFpJtXY5lFegqv3wCbZ7g8k 0VtFDAMqujDEuAd31ToZWXaHetw4oo0EcNumGpkS1HreXayY2KnHXtaIZxCCRHcerr PrTUCACe/CPfw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 870DD69504; Mon, 19 Jan 2026 13:43:19 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id xikl1N9qz-ZU; Mon, 19 Jan 2026 13:43:19 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855394; bh=5kCtsa9QhfhZUIdUoxue41bJd/Uc7/pcCv3KtrVrGGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SHaQ6eW7yTL/9j10EsxXRiCwQrEotDKI6FbQNNFkgB90kSLlIS5x+Ut34d/yMj7cZ EIaKS36iVjZNXbyj2lcTtDCM1YTQCuFb1K2bUg2kKpSmPbLO3F5F6YbVs36ugrdds8 0pAPQwSmsGR9QszhfQpTkem40VhaboahgQ+56spoAG7qNh7C0IYvZEV7eOcykncUHL HQq23EkPjAzvX8dEAQhTI6lc3z1MVgfa0z9R28s5/sNBxxUSGCRQpx+h1nC8dmwvvP cETGKktNAXmcl3mg2kRkVxLvMaJz5dP3UQWidQfigZ+qjH0uHcpg78XjP3XknakrMB i/AXEW3q6bRzA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 48A26693BA; Mon, 19 Jan 2026 13:43:14 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 19 Jan 2026 13:41:12 -0700 Message-ID: <20260119204130.3972647-20-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260119204130.3972647-1-sjg@u-boot.org> References: <20260119204130.3972647-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: WXLPZMRQQAOOKL6KRKQWONP3OKKGJMPS X-Message-ID-Hash: WXLPZMRQQAOOKL6KRKQWONP3OKKGJMPS X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <simon.glass@canonical.com>, "Claude Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 19/27] expo: Fix textedit word-wrap measurement order List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/WXLPZMRQQAOOKL6KRKQWONP3OKKGJMPS/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Expo debugging and textedit improvements (part E)
|
|
Commit Message
Simon Glass
Jan. 19, 2026, 8:41 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Text in a textedit can extend past the right boundary because it is measured before its bbox is set correctly. Call scene_obj_get_hw() after setting the edit text's bbox in scene_txted_calc_dims() to ensure correct word-wrapping. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- boot/scene_textedit.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/boot/scene_textedit.c b/boot/scene_textedit.c index 160b9457a50..2075cfbd417 100644 --- a/boot/scene_textedit.c +++ b/boot/scene_textedit.c @@ -73,6 +73,11 @@ int scene_txted_calc_dims(struct scene_obj_txtedit *ted, struct udevice *cons) if (ret < 0) return log_msg_ret("sbb", ret); + /* Measure the edit text now that its bbox is set correctly */ + ret = scene_obj_get_hw(scn, ted->tin.edit_id, NULL); + if (ret < 0) + return log_msg_ret("hw", ret); + return 0; }