Project

General

Profile

Actions

Bug #14686

closed

Incorrect width calculation for WTextEdit

Added by Andreas Frolov 22 days ago. Updated 6 days ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
07/21/2026
Due date:
% Done:

0%

Estimated time:

Description

In a horizontal layout with Wt::LayoutImplementation::JavaScript enabled, WTextEdit is partially obscured by the next widget.

Application::Application(const Wt::WEnvironment& env) : Wt::WApplication(env)
{
  auto l1 = std::make_unique<Wt::WHBoxLayout>();
  l1->setPreferredImplementation(Wt::LayoutImplementation::JavaScript);

  auto b1 = l1->addWidget(std::make_unique<Wt::WPushButton>());
  b1->setText("Left buttton");

  auto e1 = l1->addWidget(std::make_unique<Wt::WTextEdit>());

  auto b2 = l1->addWidget(std::make_unique<Wt::WPushButton>(), 1);
  b2->setText("Right button");

  root()->setLayout(std::move(l1));
}

Related issues 1 (0 open1 closed)

Related to Bug #14685: Regression in WVBoxLayoutClosedRomain Mardulyn07/21/2026

Actions
Actions #1

Updated by Romain Mardulyn 21 days ago

  • Related to Bug #14685: Regression in WVBoxLayout added
Actions #2

Updated by Romain Mardulyn 21 days ago

  • Target version set to 4.14.1
Actions #3

Updated by Romain Mardulyn 21 days ago

  • Status changed from New to InProgress
Actions #4

Updated by Romain Mardulyn 21 days ago

  • Status changed from InProgress to Review
Actions #5

Updated by emil de keyser 15 days ago

  • Assignee set to emil de keyser
Actions #6

Updated by Romain Mardulyn 12 days ago

  • Status changed from Review to Implemented @Emweb
Actions #7

Updated by Romain Mardulyn 6 days ago

  • Status changed from Implemented @Emweb to Closed
  • Assignee changed from emil de keyser to Romain Mardulyn
Actions

Also available in: Atom PDF