Join GitHub today
Added scroll bar to ListBox2D #1564
@@ Coverage Diff @@ ## master #1564 +/- ## ========================================== + Coverage 87.34% 87.35% +<.01% ========================================== Files 246 246 Lines 32266 32319 +53 Branches 3504 3509 +5 ========================================== + Hits 28184 28231 +47 - Misses 3247 3250 +3 - Partials 835 838 +3
referenced this pull request
Aug 1, 2018
def remove_element(self, element): idx = self._elements.index(element) del self._elements[idx] del self.element_offsets[idx] def update_element(self, element, coords, anchor="position"): """ Updates the position of a UI component in the panel. Parameters ---------- element : UI The UI item to be updated. coords : (float, float) or (int, int) New coordinates. If float, normalized coordinates are assumed and they must be between [0,1]. If int, pixels coordinates are assumed and it must fit within the panel's size. """ self.remove_element(element) self.add_element(element, coords, anchor)
Sep 11, 2018
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews.