lexgui 0.7.6 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  const LX = {
10
- version: "0.7.6",
10
+ version: "0.7.7",
11
11
  ready: false,
12
12
  extensions: [], // Store extensions used
13
13
  signals: {}, // Events and triggers
@@ -3123,6 +3123,7 @@ class ContextMenu {
3123
3123
  }
3124
3124
  else if( (rect.top + rect.height) > window.innerHeight )
3125
3125
  {
3126
+ div.style.marginTop = "";
3126
3127
  top = (window.innerHeight - rect.height - margin);
3127
3128
  }
3128
3129
  }
@@ -11215,7 +11216,7 @@ class RangeInput extends BaseComponent {
11215
11216
  container.appendChild( slider );
11216
11217
 
11217
11218
  slider.addEventListener( "input", e => {
11218
- this.set( isRangeValue ? [ e.target.valueAsNumber, ogValue[ 1 ] ] : e.target.valueAsNumber, false, e );
11219
+ this.set( isRangeValue ? [ Math.min(e.target.valueAsNumber, ogValue[ 1 ]), ogValue[ 1 ] ] : e.target.valueAsNumber, false, e );
11219
11220
  }, { passive: false });
11220
11221
 
11221
11222
  // If its a range value, we need to update the slider using the thumbs
@@ -11281,7 +11282,7 @@ class RangeInput extends BaseComponent {
11281
11282
  container.appendChild( maxSlider );
11282
11283
 
11283
11284
  maxSlider.addEventListener( "input", e => {
11284
- ogValue[ 1 ] = +e.target.valueAsNumber;
11285
+ ogValue[ 1 ] = Math.max(value, +e.target.valueAsNumber);
11285
11286
  this.set( [ value, ogValue[ 1 ] ], false, e );
11286
11287
  }, { passive: false });
11287
11288
  }
@@ -16420,7 +16421,7 @@ class AssetView {
16420
16421
  }
16421
16422
  else
16422
16423
  {
16423
- this.toolsPanel = area.addPanel({ className: 'flex flex-col overflow-hidden' });
16424
+ this.toolsPanel = area.addPanel({ className: 'flex flex-col overflow-hidden', height:"auto" });
16424
16425
  this.contentPanel = area.addPanel({ className: 'lexassetcontentpanel flex flex-col overflow-hidden' });
16425
16426
  }
16426
16427
 
@@ -16473,9 +16474,11 @@ class AssetView {
16473
16474
  this.toolsPanel.addText(null, textString, null, {
16474
16475
  inputClass: "nobg", disabled: true, signal: "@on_page_change", maxWidth: "16ch" }
16475
16476
  );
16477
+ this.toolsPanel.endLine();
16476
16478
 
16477
16479
  if( !this.skipBrowser )
16478
16480
  {
16481
+ this.toolsPanel.sameLine();
16479
16482
  this.toolsPanel.addComboButtons( null, [
16480
16483
  {
16481
16484
  value: "Left",
@@ -16510,9 +16513,9 @@ class AssetView {
16510
16513
  inputClass: "nobg", disabled: true, signal: "@on_folder_change",
16511
16514
  style: { fontWeight: "600", fontSize: "15px" }
16512
16515
  });
16513
- }
16514
16516
 
16515
- this.toolsPanel.endLine();
16517
+ this.toolsPanel.endLine();
16518
+ }
16516
16519
  };
16517
16520
 
16518
16521
  this.toolsPanel.refresh();