numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

[GLITCH] Toolbar too wide in GraphViewer #49

Closed numeredev closed 1 year ago

numeredev commented 1 year ago

DESCRIPTION

Describe the bug The toolbar of the GraphViewer is a bit too wide to handle situations, where you set the aspect ratio of plots to 1.

To Reproduce Steps to reproduce the behavior:

  1. Create a simple plot like plot sin(x) -set reset aspect=1
  2. See the truncated toolbar

Expected behavior The toolbar should be either less wide or the window size should be increased to handle that correctly.

Screenshots grafik

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

First thing to be done is to make the wxTextCtrl smaller in void wxMGL::InitializeToolbar() in wx.cpp, because it is far wider than actually needed. It might also be helpful to set a minimal window size for the GraphViewer, but that might require that the other dimension of the window is adapted accordingly.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST