Commit 0519117f authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[contextMenu] fix for context menu positioning

parent ea1147e6
...@@ -30,4 +30,8 @@ ...@@ -30,4 +30,8 @@
padding: 10px; padding: 10px;
} }
.context-menu {
position: fixed;
}
/*# sourceMappingURL=Styles.css.map */ /*# sourceMappingURL=Styles.css.map */
...@@ -24,3 +24,6 @@ ...@@ -24,3 +24,6 @@
.doc-chooser .doc-chooser
cursor: pointer cursor: pointer
padding: 10px padding: 10px
.context-menu
position: fixed
...@@ -21,6 +21,7 @@ import Reactix.DOM.HTML as HTML ...@@ -21,6 +21,7 @@ import Reactix.DOM.HTML as HTML
import Gargantext.Utils.Reactix as R2 import Gargantext.Utils.Reactix as R2
thisModule :: String
thisModule = "Gargantext.Components.ContextMenu.ContextMenu" thisModule = "Gargantext.Components.ContextMenu.ContextMenu"
type Props t = ( type Props t = (
......
...@@ -329,15 +329,15 @@ _NgramsRepoElement :: Iso' NgramsRepoElement { ...@@ -329,15 +329,15 @@ _NgramsRepoElement :: Iso' NgramsRepoElement {
_NgramsRepoElement = _Newtype _NgramsRepoElement = _Newtype
ngramsRepoElementToNgramsElement :: NgramsTerm -> Int -> NgramsRepoElement -> NgramsElement ngramsRepoElementToNgramsElement :: NgramsTerm -> Int -> NgramsRepoElement -> NgramsElement
ngramsRepoElementToNgramsElement ngrams occurrences (NgramsRepoElement { size, list, root, parent, children }) = ngramsRepoElementToNgramsElement ngrams occurrences (NgramsRepoElement { children, list, parent, root, size }) =
NgramsElement NgramsElement
{ ngrams { children
, size -- TODO should we assert that size(ngrams) == size?
, list , list
, root , ngrams
, parent
, children
, occurrences , occurrences
, parent
, root
, size -- TODO should we assert that size(ngrams) == size?
} }
----------------------------------------------------------------------------------- -----------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment